How to get details for a fuel station by PVID or station ID
This section provides an example of a request for detailed information about a specific fuel station.
Note
This example uses a HERE API key to authenticate your request. For the available authentication options, see the Identity and Access Management Developer Guide
User story
You want to get the fuel station details using the PVID or station id which you have previously received.
Request Summary
| Resource | Parameters |
|---|---|
stations/bulk | The resource representation is a .json extension. |
[id:](resource-stations-pvid.md#param-pvid) | A known fuel station PVID or station id. |
Request
Note
idvalues change without notice. If theidis no longer available, the response returnsblank.
This code block demonstrates the complete request, specifying that the response data is in JSON format.
https://fuel.hereapi.com/v3/stations/
?id=1099721199
&apiKey=\{YOUR\_API\_KEY\}Response
The response to the request contains:
- fuel price information
This is the example response in JSON format:
{
"hasMore":false,
"fuelStations":{
"fuelStation":[
{
"fuelPrice":[
{
"price":1.219,
"fuelType":"27",
"unit":"l",
"currency":"EUR",
"lastUpdateTimestamp":"2015-01-20T13:03:43.000Z"
},
{
"price":1.039,
"fuelType":"1",
"unit":"l",
"currency":"EUR",
"lastUpdateTimestamp":"2015-01-20T13:03:43.000Z"
},
{
"price":0.639,
"fuelType":"14",
"unit":"l",
"currency":"EUR",
"lastUpdateTimestamp":"2015-01-16T11:03:16.000Z"
}
],
"id":"276u336g-6a194aba138f4fab96f4b2cecd4bde7b",
"pvId":"1099721199"
}
]
}
}
For more details about responses to this type of request refer to Fuel Stations Response.
Updated 16 days ago