\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 : integer|null

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

Type

integer|null

$accuracyRadius

$accuracyRadius : integer|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

integer|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 : integer|null

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

Type

integer|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(  $attr) 

Parameters

$attr

jsonSerialize()

jsonSerialize()