Class Location
Contains data for the location record associated with an IP address
This record is returned by all the end points except the Country end point.
- GeoIp2\Record\AbstractRecord
- GeoIp2\Record\Location
public
integer
|
$accuracyRadius |
#
The radius in kilometers around the specified location where the IP address is likely to be. This attribute is only available from the Omni end point. |
public
float
|
$latitude |
#
The latitude of the location as a floating point number. This attribute is returned by all end points except the Country end point. |
public
float
|
$longitude |
#
The longitude of the location as a floating point number. This attribute is returned by all end points except the Country end point. |
public
integer
|
$metroCode |
#
The metro code of the location if the location is in the US. MaxMind returns the same metro codes as the Google AdWords API. This attribute is returned by all end points except the Country end point. |
public
string
|
$timeZone |
#
The time zone associated with location, as specified by the IANA Time Zone Database, e.g., "America/New_York". This attribute is returned by all end points except the Country end point. |