Stations Count
This resource returns the number of fuel stations in the given area.
Requests for this resource use the HTTP GET method. The search criteria are specified by means of query parameters, which must include a search geometry.
Search geometry can be one of:
- prox: A circular area defined by the coordinates of its center and a radius.
- corridor: A path defined as a set of points (latitude, longitude pairs) and a width.
- bbox: A square defined by its top left latitude and longitude and its bottom right latitude and longitude.
Note the filtering criteria are not taken into consideration in counting requests.
Request
This code block shows a search request that uses proximity (prox
) to define the search area.
https://fuel-v2.cc.api.here.com/fuel/stations/count.xml
?prox=52.516667,13.383333,5000
-H "Authorization: Bearer {YOUR_TOKEN}"
Request Parameters
This table documents both mandatory and optional request parameters supported by the stations/count
resource.
Parameter | Required | Description |
---|---|---|
app_id - legacy | Yes | A-20 byte Base64 URL-safe encoded string used for the authentication of the client application. You must include authentication with every request. For more information on authentication, see the Identity & Access Management Developer Guide. |
app_code - legacy | Yes | A-20 byte Base64 URL-safe encoded string used for the authentication of the client application. You must include authentication with every request. For more information on authentication, see the Identity & Access Management Developer Guide. |
prox | prox , bbox or corridor must be present | A circular search area defined by the latitude and longitude of its center (compliant with WGS 84) and an integer representing the radius of the area in meters, all separated by commas. For example, The maximum radius of the circle is 200 km. |
bbox | prox , bbox or corridor must be present | A bounding box defined by the latitude and longitude (compliant with WGS 84) of its top left and bottom right corners. The top left and bottom right pairs are separated by a semicolon and the latitude and longitude pairs are separated by commas. For example, one possible bounding box value is The bounding box size (width and/or high) must be no larger than 400km. |
corridor | prox , bbox , or corridor must be present | A strip defined as a semicolon-separated list of points (pairs of comma-separated latitude and longitude WGS 84 compliant values) For example, specifies a journey from Berlin to Hamburg via Magdeburg.Maximum corridor area is 5000 km2 Requests to the |
corridorwidth | No | The width of the corridor in meters. This parameter takes effect only if The maximum corridor width is 20 km. Default: 5000 |
Response
For more information on the responses to queries for the stations/count
resource, see Fuel Stations Count Response.