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_API_KEY}
&quadkey=12020330
&pattern_time=150000
Note: This example uses a HERE API Key to authenticate your request. For information on other possible options, see Authentication Guide. 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