Stations

Returns stations list within a circle around a location

get/stations/within/circle/{latitude},{longitude};{radius}

Request

  • Base URL: https://api.prix-carburants.2aaz.fr
  • URL: https://api.prix-carburants.2aaz.fr/stations/within/circle/{latitude},{longitude};{radius}
  • Auth: one of:
    • API key in header Authorization
    • API key in query parameter key
    • HTTP basic

Path parameters

latitudenumber required

latitude in degree of the center point

longitudenumber required

longitude in degree of the center point

radiusnumber required

radius of the circle in meters (max 10000)

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))

Response

Station Data

idinteger
type'R' | 'A'
namestring

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.