Map Tile API Developer's Guide

Traffic

The user wants to obtain a tile displaying the current traffic conditions in a part of Beijing.

Request for a Traffic Only Tile

The code block below demonstrates a request for a traffic tile, using the flowtile resource.

https://1.traffic.maps.hereapi.cn/maptile/2.1/flowtile/newest/normal.traffic.day/13/6743/3105/256/png
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}

Response to Traffic Only Tile Request

The response contains the image below.

Figure 1. Transparent Traffic Tile for a Part of Beijing

Request for a Traffic Map Tile with Minimum Traffic Congestion Level

The code block below demonstrates a complete request for a traffic map tile where no free flow is rendered.

https://1.traffic.maps.hereapi.cn/maptile/2.1/flowtile/newest/normal.traffic.day/13/6748/3104/256/png
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&min_traffic_congestion=heavy

Response to Traffic Map Tile Request with Minimum Traffic Congestion Level

The response contains the following image.

Figure 2. Traffic Tile with Minimum Traffic Congestion Level "heavy"