LocationInterface
interface LocationInterface
Methods
The name of the provider that created this Location.
Will always return the coordinates value object.
Returns the street number value.
Returns the street name value.
Returns the city or locality value.
Returns the postal code or zipcode value.
Returns the locality district, or sublocality, or neighborhood.
Returns the administrative levels.
Returns the country name.
Returns the country code.
Returns the timezone for the Location. The timezone MUST be in the list of supported timezones.
Returns an array with data indexed by name.
Details
at line 14
string
getProvidedBy()
The name of the provider that created this Location.
at line 21
Coordinates|null
getCoordinates()
Will always return the coordinates value object.
at line 28
Bounds|null
getBounds()
Returns the bounds value object.
at line 35
string|int|null
getStreetNumber()
Returns the street number value.
at line 42
string|null
getStreetName()
Returns the street name value.
at line 49
string|null
getLocality()
Returns the city or locality value.
at line 56
string|null
getPostalCode()
Returns the postal code or zipcode value.
at line 64
string|null
getSubLocality()
Returns the locality district, or sublocality, or neighborhood.
at line 73
AdminLevelCollection
getAdminLevels()
Returns the administrative levels.
This method MUST NOT return null.
at line 80
string|null
getCountryName()
Returns the country name.
at line 87
string|null
getCountryCode()
Returns the country code.
at line 96
string|null
getTimezone()
Returns the timezone for the Location. The timezone MUST be in the list of supported timezones.
at line 103
array
toArray()
Returns an array with data indexed by name.