public static function createFromXml(\SimpleXMLElement $xml)
{
$coordinate = new self();
$coordinate->type = (string) $xml['type'];
$x = self::intToFloat((string) $xml['x']);
$y = self::intToFloat((string) $xml['y']);
$coordinate = self::setHAFAScoordinates($coordinate, $x, $y);
return $coordinate;
}