Traffic API Developer's Guide

Traffic Pattern Tile

The user wants to obtain a map tile showing a traffic pattern for a specific point of time, 5:40 PM, using the quadkey addressing scheme.

Request

The point of time is specified as a number of seconds from the beginning of the week (00:00 hours, Sunday, in local time. In this case, pattern_time = 150000. The quadkey value is 12020330.

https://[1..4].traffic.maps.ls.hereapi.com/traffic/6.0/tiles/quadkeytraffic
?apikey={YOUR_APIKEY}
&quadkey=12020330
&pattern_time=150000
Note: This example uses a HERE API Key to authenticate your request. For information on other possible options, see https://developer.here.com/documentation/authentication. For examples of how to use the other authentication options with the Traffic API, see Authentication Examples.

Response

The response to the request for a traffic pattern tile overlay delivers the following PNG image:

Figure 1. Traffic Pattern Tile Traffic Pattern Tile for Frankfurt at 5:40PM on Monday

If you remove the pattern_time parameter from the request, the response is a flow tile instead.

Figure 2. Flow Tile Real-time Flow Tile Request for Frankfurt