Property | Type | Description | |
---|---|---|---|
$coordinate | The location coordinates. | ||
$distance | float | If search has been with coordinates, distance to original point in meters. | |
$name | string | The name of this location. | |
$score | integer | The score with regard to the search request, the higher the better. |
Method | Description | |
---|---|---|
createFromJson ( object $json, |
Factory method to create an instance and extract the data from the given JSON object. | |
createFromXml ( SimpleXMLElement $xml, |
Factory method to create an instance and extract the data from the given xml. | |
toXml ( SimpleXMLElement $parent = null ) : SimpleXMLElement | Convert to XML representation. |
public static createFromJson ( object $json, |
||
$json | object | The item JSON |
$obj | An object or null to create it | |
return | The created instance |
public static createFromXml ( SimpleXMLElement $xml, |
||
$xml | SimpleXMLElement | The item xml |
$obj | An object or null to create it | |
return | The created instance |
abstract public toXml ( SimpleXMLElement $parent = null ) : SimpleXMLElement | ||
$parent | SimpleXMLElement | |
return | SimpleXMLElement |
public Coordinate,Transport\Entity $coordinate | ||
return |
public float $distance | ||
return | float |
public int $score | ||
return | integer |