GuidesAPI Reference
Guides

Stations Count Along the Route

This resource returns the number of fuel stations in the specified area.

Requests for this resource use the HTTP POST method. This supports only corridor searches. Maximum corridor area is 5000 km2.

The filtering criteria aren't taken into consideration when counting requests.

Request

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

https://fuel.hereapi.com/v3/stations/count
-H "Authorization: Bearer {YOUR_TOKEN}"

The following code block provides an example of a required CorridorSearchRequest with search corridor specification. In this case, the Content-Type is set to application/json. For more information about this object, see CorridorSearchRequest

{
   "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

For more information on the responses to queries for the stations resource, see Fuel stations CountType response.