Stations
Returns stations list around location
get/stations/around/{latitude},{longitude}
Request
- Base URL: https://api.prix-carburants.2aaz.fr
- URL: https://api.prix-carburants.2aaz.fr/stations/around/{latitude},{longitude}
- Auth: one of:
- API key in header Authorization
- API key in query parameter key
- HTTP basic
Path parameters
latitudenumber required
latitude in degree of point to search around
longitudenumber required
longitude in degree of point to search around
Query parameters
typesstring[]
filter on station types (comma separated list)
brandsinteger[]
filter on brand ids (comma separated list)
departmentsinteger[]
filter on department codes (comma separated list)
postcodesstring[]
filter on postcodes (comma separated list)
fuelsinteger[]
filter on fuel ids (comma separated list)
responseFieldsstring[]
child data to include
Headers
Rangestring
Range of data to return (station : in number of elements (default 10, max 20) or m : distance around the point (max 10000 (10km))
Response
Station Data
Example response
[
{
"Brand": {
"id": 1,
"name": "TheBrandName",
"short_name": "Brand",
"nb_stations": 42
},
"Fuels": [
{
"id": 1,
"type": "D",
"name": "Gazole",
"short_name": "Gazole",
"picto": "B7",
"Update": {
"value": "2022-10-10T16:10:07Z",
"text": "10/10/2022 16:10:07"
},
"rupture": false,
"Price": {
"value": 1.986,
"text": "1.986 €/L"
}
}
],
"Distance": {
"value": 2674,
"text": "2.67 km"
}
}
]Changes
No recorded changes to this operation across all 1 revision of this API.