Locations
Locations_compare_retrieve
Compare two locations by their IDs. Returns shared product prices with the latest price per location, the date of that price, and the total sum.
Query Parameters
date__gte?string
Filter prices with date greater than or equal to this date (YYYY-MM-DD)
Format
datedate__lte?string
Filter prices with date less than or equal to this date (YYYY-MM-DD)
Format
datelocation_id_ainteger
location_id_binteger
price_is_discounted?boolean
Filter to keep only discounted or non-discounted prices
Response Body
curl -X GET "https://loading/api/v1/locations/compare?date__gte=2019-08-24&date__lte=2019-08-24&location_id_a=0&location_id_b=0&price_is_discounted=true"{
"location_a": {
"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"
},
"location_b": {
"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"
},
"shared_products": null,
"total_sum_location_a": -99999999,
"total_sum_location_b": -99999999
}