Geo

@Serializable
class Geo(var lat: Float? = null, var lon: Float? = null, var type: Byte? = null, var accuracy: Int? = null, var country: String? = null, var city: String? = null, var metro: String? = null, var state: String? = null)

This object encapsulates various methods for specifying a geographic location.

When subordinate to a Device object, it indicates the location of the device which can also be interpreted as the user’s current location. When subordinate to a User object, it indicates the location of the user’s home base (i.e., not necessarily their current location).

The lat/lon attributes should only be passed if they conform to the accuracy depicted in the type attribute. For example, the centroid of a geographic region such as postal code should not be passed.

OpenRTB Section 3.2.19

See also

code.google.com/apis/adwords/docs/appendix/metrocodes.html

Constructors

Link copied to clipboard
constructor(lat: Float? = null, lon: Float? = null, type: Byte? = null, accuracy: Int? = null, country: String? = null, city: String? = null, metro: String? = null, state: String? = null)

Properties

Link copied to clipboard

Estimated location accuracy in meters. Recommended when lat/lon are specified and derived from a device’s location services (i.e., type = 1). Note that this is the accuracy as reported from the device. Consult OS specific documentation (e.g., Android, iOS) for exact interpretation.

Link copied to clipboard

City using United Nations Code for Trade & Transport Locations.

Link copied to clipboard

Country code using ISO-3166-1-alpha-3.

Link copied to clipboard

Latitude from -90.0 to +90.0, where negative is south.

Link copied to clipboard

Longitude from -180.0 to +180.0, where negative is west

Link copied to clipboard

Google metro code; similar to but not exactly Nielsen DMAs.

Link copied to clipboard

2-letter state code.

Link copied to clipboard

Source of location data; recommended when passing lat/lon.