Traffic API Developer's Guide

TMC Table filtering

The examples in this article demonstrate how to filter by a TMC table in a request.

TMC Table filtering, [Z]/[X]/[Y] Addressing

User Story

The user wants to obtain a traffic tile for an area near Boston, Massachusetts, on the border of TMC table A0129. The request is to use the [Z]/[X]/[Y] addressing scheme and filter by the TMC table.:

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 request example below. Note that the request example also uses the authentication parameters.

Resource: tiles [tiles]
URL variables: {zoom}/{column}/{row} [11/613/759/256], the [Z]/[X]/[Y] (tile) addressing scheme, see also The Mercator Projection
  {size} [256], the resolution of the response image
  {format} [png32], the format of the response image, which specifies the required color depth
Parameters: tables [tables=A0129], specifies the TMC tables to use

Request

A request matching the user story is formulated as follows:

https://tiles.traffic.cit.api.here.com/traffic/6.0/tiles/11/613/759/256/png32
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&tables=A0129

Response

The response to both versions of the request above return the following PNG traffic flow tile overlay:

Figure 1. Request Including Table A0129 A traffic flow tile request including only TMC table 129

Including a TMC Table, Quadkey Addressing

User Story

The user wants to obtain a traffic tile for an area near Boston, Massachusetts, on the border of TMC table A0129. The request is to use quadkey addressing scheme and filter by the TMC table.:

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 request example below. Note that the request example also uses the authentication parameters.

Resource: tiles [tiles]
URL variables: {quadkeytraffic} [quadkeytraffic], resource endpoint, indicating that a traffic tile overlay based identified by a quadkey is required
Parameters: quadkey [quadkey=03023320323], map tile location specified as a single value, see also Quadkeys
  tables [tables=A0129], a list of tables to use (in this case one table)

Request

A request matching the user story is formulated as follows:

https://tiles.traffic.cit.api.here.com/traffic/6.0/tiles/quadkeytraffic
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&quadkey=03023320323
&tables=A0129

Response

The result is an image as shown for the [Z]/[X]/[Y] version of the request under Response.

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.