How to construct a request in the HERE Destination Weather API
A request to the HERE Destination Weather API includes the basic elements shown in the following table and resource-specific parameters.
Standard - Construct a request
Construct a request with the standard HERE Destination Weather API.
Basic request elements
| Element | Value/Example | Description |
|---|---|---|
| Base URL | https://weather.hereapi.com | Production environment |
| Path | /v3 | |
| Resource | Report | Uses HTTP GET |
| Format | json | |
| Parameters | products, location | For more information on query parameters in general, see the sub-sections under Resources. |
| API key | &apiKey=[apiKey]JZlojTwKtPLbrQ9EGznlA | Substitute your own unique apiKey. For more details on authentication, see the Identity and Access Management Developer Guide. |
| Authorization Header | -H "Authorization: Bearer {YOUR_TOKEN}" | For more information on authentication, see the Identity and Access Management Developer Guide. |
Premium - Construct a request
A request to the premium HERE Destination Weather API includes the basic elements shown in the following table and resource-specific parameters.
Basic request elements
| Element | Value/Example | Description |
|---|---|---|
| Base URL | https://weather.hereapi.com | Production environment |
| Path | /v3/ | |
| Resource | tile/{zoom}/{x}/{y}/{imageType} alerts | Uses HTTP GET Uses HTTP POST |
| Path parameters (example) | /9/115/191/radar | Get Doppler radar image for tile 115,191, zoom 9 |
| Body payload | { "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 151.2011021, -33.8831135 ] }, "properties": { "width": 100000 } } ] } | Car position defined as point geometry (latitude, longitude) and optionaly raidus in meters as feature width properties |
| Authorization Header | Authorization: Bearer <token> | For more information on authentication, see the Identity and Access Management Developer Guide. |
Updated 11 days ago