\GeoIp2\RecordLocation

Contains data for the location record associated with an IP address.

This record is returned by all location services and databases besides Country.

Summary

Methods
Properties
Constants
__isset()
jsonSerialize()
$averageIncome
$accuracyRadius
$latitude
$longitude
$populationDensity
$metroCode
$timeZone
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$averageIncome

$averageIncome : int|null

The average income in US dollars associated with the requested IP address. This attribute is only available from the Insights service.

Type

int|null

$accuracyRadius

$accuracyRadius : int|null

The approximate accuracy radius in kilometers around the latitude and longitude for the IP address. This is the radius where we have a 67% confidence that the device using the IP address resides within the circle centered at the latitude and longitude with the provided radius.

Type

int|null

$latitude

$latitude : float|null

The approximate latitude of the location associated with the IP address. This value is not precise and should not be used to identify a particular address or household.

Type

float|null

$longitude

$longitude : float|null

The approximate longitude of the location associated with the IP address. This value is not precise and should not be used to identify a particular address or household.

Type

float|null

$populationDensity

$populationDensity : int|null

The estimated population per square kilometer associated with the IP address. This attribute is only available from the Insights service.

Type

int|null

$metroCode

$metroCode : int|null

The metro code of the location if the location is in the US. MaxMind returns the same metro codes as the Google AdWords API. See https://developers.google.com/adwords/api/docs/appendix/cities-DMAregions.

Type

int|null

$timeZone

$timeZone : string|null

The time zone associated with location, as specified by the IANA Time Zone Database, e.g., "America/New_York". See https://www.iana.org/time-zones.

Type

string|null

Methods

__isset()

__isset(string  $attr) : bool

Parameters

string $attr

Returns

bool —

jsonSerialize()

jsonSerialize() : ?array

Returns

?array —