Map Tile API Developer's Guide

Congestion information Tiles

This article shows requests for map tiles containing congestion and/or environmental zone information.

User story

The user wants to obtain two images showing congestion information for an area northwest of Berlin, Germany. The first tile is to show a normal map tile day view of the map showing the congestion zone, while the second tile is to show a truck map tile day view of the same location with the congestion zone as well.

Request Summary

The following list summarizes the elements required to create a request matching the user story and shows, in square brackets, how those elements are used in the example(s) below. Note that the request example also uses the authentication parameters.

Resource: maptile = maptile or trucktile, see also (resource) type
URL variables: {map id} = newest, see also Requesting the Right Map Version
  {scheme} = normal.day, see also scheme
  {zoom}/{column}/{row} = 11/1100/671, see also The Mercator Projection
  {size} = 256, see also size
  {format} = png8, see also format
Parameters: congestion = ?congestion, see also congestion

Request for a Map Tile with congestion

The code block below demonstrates a complete request for a map tile with congestion.

https://2.base.maps.cit.api.here.com
/maptile/2.1/maptile/newest/normal.day/11/1100/671/256/png8
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&congestion

Response to Map Tile with congestion

The response to the request delivers the following image:

Figure 1. Map Tile with congestion

Request for a Truck Tile with congestion

The code block below demonstrates a request for a truck tile with congestion.

https://2.base.maps.cit.api.here.com
/maptile/2.1/trucktile/newest/normal.day/11/1100/671/256/png8
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&congestion

Response to a Truck Tile with congestion Request

The response contains the image below.

Figure 2. Truck Tile with congestion