interface LocationInterface

Methods

string
getProvidedBy()

The name of the provider that created this Location.

getCoordinates()

Will always return the coordinates value object.

Bounds|null
getBounds()

Returns the bounds value object.

string|int|null
getStreetNumber()

Returns the street number value.

string|null
getStreetName()

Returns the street name value.

string|null
getLocality()

Returns the city or locality value.

string|null
getPostalCode()

Returns the postal code or zipcode value.

string|null
getSubLocality()

Returns the locality district, or sublocality, or neighborhood.

getAdminLevels()

Returns the administrative levels.

string|null
getCountryName()

Returns the country name.

string|null
getCountryCode()

Returns the country code.

string|null
getTimezone()

Returns the timezone for the Location. The timezone MUST be in the list of supported timezones.

array
toArray()

Returns an array with data indexed by name.

Details

at line 14
string getProvidedBy()

The name of the provider that created this Location.

Return Value

string

at line 21
Coordinates|null getCoordinates()

Will always return the coordinates value object.

Return Value

Coordinates|null

at line 28
Bounds|null getBounds()

Returns the bounds value object.

Return Value

Bounds|null

at line 35
string|int|null getStreetNumber()

Returns the street number value.

Return Value

string|int|null

at line 42
string|null getStreetName()

Returns the street name value.

Return Value

string|null

at line 49
string|null getLocality()

Returns the city or locality value.

Return Value

string|null

at line 56
string|null getPostalCode()

Returns the postal code or zipcode value.

Return Value

string|null

at line 64
string|null getSubLocality()

Returns the locality district, or sublocality, or neighborhood.

Return Value

string|null

at line 73
AdminLevelCollection getAdminLevels()

Returns the administrative levels.

This method MUST NOT return null.

Return Value

AdminLevelCollection

at line 80
string|null getCountryName()

Returns the country name.

Return Value

string|null

at line 87
string|null getCountryCode()

Returns the country code.

Return Value

string|null

at line 96
string|null getTimezone()

Returns the timezone for the Location. The timezone MUST be in the list of supported timezones.

http://php.net/manual/en/timezones.php

Return Value

string|null

at line 103
array toArray()

Returns an array with data indexed by name.

Return Value

array