Skip to main content

GeoLocationResponseWrapperCollection Schema

Data structure for Geo Location Response Wrapper Collection objects.

Item Type​

This is a collection (list) of GeoLocationResponse items.

Usage​

# Example: Working with GeoLocationResponseWrapperCollection
items = [
{"city":"city-value-1","coordinates":{"lat":1,"lng":1,"location":"location-value-1"},"country":"country-value-1","id":1,"iso_code":"iso_code-value-1"},
{"city":"city-value-2","coordinates":{"lat":2,"lng":2,"location":"location-value-2"},"country":"country-value-2","id":2,"iso_code":"iso_code-value-2"}
]

# Pass to an action that requires this collection type
resource.some_action(body=items)

JSON Example​

[
{
"city": "city-value-1",
"coordinates": {
"lat": 1,
"lng": 1,
"location": "location-value-1"
},
"country": "country-value-1",
"id": 1,
"iso_code": "iso_code-value-1"
},
{
"city": "city-value-2",
"coordinates": {
"lat": 2,
"lng": 2,
"location": "location-value-2"
},
"country": "country-value-2",
"id": 2,
"iso_code": "iso_code-value-2"
}
]