pub struct Geo {Show 14 fields
pub lat: Option<f32>,
pub lon: Option<f32>,
pub type: Option<LocationType>,
pub accuracy: Option<i32>,
pub lastfix: Option<i32>,
pub ipservice: Option<IpLocationService>,
pub country: Option<String>,
pub region: Option<String>,
pub regionfips104: Option<String>,
pub metro: Option<String>,
pub city: Option<String>,
pub zip: Option<String>,
pub utcoffset: Option<i32>,
pub ext: Option<Map<String, Value>>,
}
Expand description
3.2.19 Object: Geo
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.
Fields§
§lat: Option<f32>
float Latitude from -90.0 to +90.0, where negative is south.
lon: Option<f32>
float Longitude from -180.0 to +180.0, where negative is west.
type: Option<LocationType>
integer Source of location data; recommended when passing lat/lon. Refer to List 5.20.
accuracy: Option<i32>
integer 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.
lastfix: Option<i32>
integer Number of seconds since this geolocation fix was established. Note that devices may cache location data across multiple fetches. Ideally, this value should be from the time the actual fix was taken.
ipservice: Option<IpLocationService>
integer Service or provider used to determine geolocation from IP address if applicable (i.e., type = 2). Refer to List 5.23.
country: Option<String>
string Country code using ISO-3166-1-alpha-3.
region: Option<String>
string Region code using ISO-3166-2; 2-letter state code if USA.
regionfips104: Option<String>
string Region of a country using FIPS 10-4 notation. While OpenRTB supports this attribute, it has been withdrawn by NIST in 2008.
metro: Option<String>
string Google metro code; similar to but not exactly Nielsen DMAs. See Appendix A for a link to the codes.
city: Option<String>
string City using United Nations Code for Trade & Transport Locations. See Appendix A for a link to the codes.
zip: Option<String>
string Zip or postal code.
utcoffset: Option<i32>
integer Local time as the number +/- of minutes from UTC.
ext: Option<Map<String, Value>>
object Placeholder for exchange-specific extensions to OpenRTB.