Tiles
This resource processes requests for map tiles reflecting traffic information for a particular geographic area. The response delivers the map tile as bitmap.
Deprecation Notice |
---|
HERE has changed the way traffic tiles are served. Live traffic tiles have been deprecated in the Traffic API and are now delivered by the Map Tile API infrastructure. Documentation on live traffic tiles is part of the Map Tile API documentation. This does not affect traffic pattern tiles, which continue to be served by the Traffic API. |
Parameter Combinations for Common Use Cases
Required | Optional |
---|---|
|
|
Required | Optional |
---|---|
|
|
Required | Optional |
---|---|
|
|
Required | Optional |
---|---|
|
|
Resource Parameters
Parameter | Description |
---|---|
app_id | A 20-byte Base64 URL-safe encoded string used for the authentication of the client application. You must include an |
app_code | A 20-byte Base64 URL-safe encoded string used for the authentication of the client application. You must include an |
apiKey | A 43-byte Base64 URL-safe encoded string used for the authentication of the client application. As a logged in user, you can generate it at https://developer.here.com/projects. API Keys never expire but you can invalidate your API Keys at any time. You cannot have more than two API Keys for one app at the same time. You must include an |
depth | An indicator of tile color depth. The permitted values are:
Used only with quadkey tile addressing. |
nc | A flag indicating whether the response is to return HTTP error code 204 (empty) for unpopulated traffic tiles ( The permitted values are:
|
pattern_time | An indicator of the time (within the week) for which to obtain a traffic pattern tile. The value represents local time for the targeted area, in seconds beginning on Sunday at 0:00. The permitted values are numeric and must fall in the range from 0 to 604800. |
profile | Profile defines such attributes as geographic coverage (TMC tables available for use) and custom color mapping for tile overlays. |
quadkey | An identifier of a map tile in a grid of tiles spanning the entire globe. A quadkey is a single number string from 0 to 21 digits long. The map zoom level for the grid to which a quadkey refers is equal to the number of digits in the quadkey string. Use only with a quadkey addressing scheme endpoint. See also Quadkeys. |
res | An indicator of the map tile resolution to be used only with a quadkey tile address. It specifies the dimensions of a rendered square map tile in pixels. The permitted values are:
|
tables | A parameter that specifies TMC tables in the profile to include or exclude from response. If the value specifies multiple tables, the table ids are separated by commas. Positive values are included, and negative values are excluded. Note: A combination of positive and negative values is not supported and results in an error response. By default (when the parameter is not used in a request) the response includes all tables in the profile. See TMCCodeType for a full list of TMC tables or your customer profile for a list of tables available to you. |
Tile Response Parameters
If a traffic tile request is successful, then it returns a PNG overlay image, as well as the following items containing additional information about the image:
Attribute | Required | Description | Example |
---|---|---|---|
Status Code | Yes | Server response status code. | 200 OK |
Cache-Control | Yes | The max-age value defines how long (in seconds) that a tile can be stored in the client cache. | public, max-age=39 |
Expires | Yes | When this tile expires. Client caches should rerequest tiles after their expiry time. | Tue, 27 Jul 14:59:00 GMT |
Content-Type | Yes | The content type of the response. This can be a PNG image or plain text, depending on the request. | image/png |
Content-Length | Yes | The size of the response. | 7989 |
Date | Yes | The date and time when the tile was created. | Tue, 27 Jul 14:56:18 GMT |
X-LastUpdateFromTrafficAdapter | Yes | When this tile information was last updated. | 29 Oct 2015 14:49:32 UTC |
X-Served-By | No | Identifier of an instance/server which served the request. | i-4864c4f0.eu-west-1b |