Fuel Prices API Developer's Guide

Stations Along the Route

This resource retrieves a list of fuel stations that match the specified criteria.

Requests against this resource use the HTTP POST method. Supports only corridor search. Maximum corridor area is 5000 km2

Request Example

The code block below shows a search request for fuel stations along the route from Hamburg, Stormarnplatz to Hamburg, Sommerpfad.


https://fuel-v2.cc.api.here.com/fuel/stations
?apiKey={YOUR_API_KEY}

The code block below provides an example of a required CorridorSearchRequest with search criteria. Note that Content-Type is set to application/json in this case. For more information about this object, see CorridorSearchRequest


{
   "maxResults":10,
   "offset":0,
   "fuelType":"-1",
   "imageDimensions":"w32",
   "corridor":{
      "width":5000,
  "points":"53.651624,10.094743;53.652624,10.095743;53.653624,10.096743;
    53.654624,10.097743;53.655624,10.098743;53.656624,10.099743"
   }
}

Response to this Request

For more information on the responses to queries against the stations resource, see Fuel Stations Response.