Interface LocationRecord

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

interface LocationRecord {
    accuracyRadius: number;
    averageIncome?: number;
    latitude: number;
    longitude: number;
    metroCode?: number;
    populationDensity?: number;
    timeZone?: string;
}

Properties

accuracyRadius: number

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.

averageIncome?: number

The average income in US dollars associated with the IP address.

latitude: number

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.

longitude: number

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.

metroCode?: number

The metro code of the location if the location is in the US. MaxMind returns the same metro codes as the Google AdWords API.

populationDensity?: number

The estimated number of people per square kilometer.

timeZone?: string

The time zone associated with location, as specified by the IANA Time Zone Database , e.g., "America/New_York".

Generated using TypeDoc