Locations

Locations_list

GET
/api/v1/locations

Query Parameters

order_by?string

Which field to use when ordering the results.

osm_address_city__like?string
osm_address_country__like?string
osm_name__like?string
page?integer

A page number within the paginated result set.

price_count?integer
price_count__gte?integer
price_count__lte?integer
size?integer

Number of results to return per page.

type?string
  • OSM - OSM
  • ONLINE - ONLINE
Value in"ONLINE" | "OSM"

Response Body

curl -X GET "https://loading/api/v1/locations?order_by=string&osm_address_city__like=string&osm_address_country__like=string&osm_name__like=string&page=0&price_count=0&price_count__gte=0&price_count__lte=0&size=0&type=ONLINE"
{
  "items": [
    [
      {
        "id": 0,
        "type": "OSM",
        "osm_id": 9223372036854776000,
        "osm_type": "NODE",
        "osm_name": "string",
        "osm_display_name": "string",
        "osm_tag_key": "string",
        "osm_tag_value": "string",
        "osm_brand": "string",
        "osm_address_postcode": "string",
        "osm_address_city": "string",
        "osm_address_country": "string",
        "osm_address_country_code": "string",
        "osm_lat": -9999,
        "osm_lon": -9999,
        "osm_version": 2147483647,
        "website_url": "http://example.com",
        "price_count": 2147483647,
        "user_count": 2147483647,
        "product_count": 2147483647,
        "proof_count": 2147483647,
        "source": "string",
        "created": "2019-08-24T14:15:22Z",
        "updated": "2019-08-24T14:15:22Z"
      }
    ]
  ],
  "page": 1,
  "pages": 16,
  "size": 100,
  "total": 1531
}