Thrift module: geo

ModuleServicesData typesConstants
geo GeoLocation
GeoPoint
IpAddress

Data structures

Struct: IpAddress

KeyFieldTypeDescriptionRequirednessDefault value
1xForwardedForHeaderstringThe full value of the X-Forwarded-For header supplied. Normally you'll want to ignore this and use the ip field below. This is here just in case there's a bug in our logic of decoding the XFF header, or we can gain more information from the rest of the header. required
2ipstringThe ip address of the client optional

Struct: GeoPoint

KeyFieldTypeDescriptionRequirednessDefault value
1latdoubleLatitude required
2londoubleLongitude required

A geographical location

Struct: GeoLocation

KeyFieldTypeDescriptionRequirednessDefault value
3geoGeoPointThe resolved geolocation of the ip address optional
4countryCodestringThe two letter country code of the ip address; Note that guardian internal traffic (within the Guardian offices) is assigned a country code of "GNM" optional
5countryNamestringHuman readable country name optional
6citystringHuman readable city name optional
9metroCodei32The metro code of the location if the location is in the US. optional
7continentstringHuman readable continent name optional
8subdivisionslist<string>Administrative subdivisions, e.g. "Wales", "Berkshire" or "Alaska" optional
10timezonestringTime zone as specified by http://www.iana.org/time-zones e.g. America/New_York optional

Where this request was made from, derived by ip address lookup.