Stations Count
This resource returns the number of fuel stations in the given area.
Requests for this resource use the HTTP GET method. You specify he search criteria by query parameters, which must include a search geometry.
Note
The filtering criteria aren't taken into consideration when counting requests.
Request
This code block shows a search request that uses proximity (in=circle) to define the search area.
https://fuel.hereapi.com/v3/stations/count
?in=circle:52.516667,13.383333;r=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 |
|---|---|---|
| apiKey | Yes | A 43-byte Base64 URL-safe encoded string used for the authentication of the client app. API Keys never expire but you can disable your API Keys at any time. You can't have more than two API Keys for one app at the same time. You must include an apiKey with every request. For more information on authentication, see the Identity and Access Management Developer Guide. |
in | Yes | Return fuel stations within a geographical area. Area within which to return fuel stations. A geographic area can be one of the following: A circular area, provided as latitude, longitude, and radius (in meters): • Format: circle:{latitude},{longitude};r={radius} • Type: circle:{decimal},{decimal};r={integer} • Example: circle:13.1,-43.1;r=10000 A bounding box, provided as west longitude, south latitude, east longitude, north latitude: • Format: bbox:{west longitude},{southlatitude},{eastlongitude},{northlatitude} • Example: bbox:13.08836,52.33812,13.761,52.6755 A corridor, provided as a polyline in Flexible Polyline encoding and a radius (in meters). The radius is measured perpendicular to each segment of the polyline on both sides, so a radius of 50 meters will cover an area 50 meters on either side of the polyline and be 100 meters wide from one side to the other. • Format: corridor:{polyline};r={radius} • Example: corridor:BF05xgKuy2xCx9B7vUl0OhnR54EqSzpEl-HxjD3pBiGnyGi2CvwFsgD3nD4vB6e:r=50 |
Response
For more information on the responses to queries for the stations/count resource, see FuelStationsResultType response.