Map Tile API Developer's Guide

Truck Tile

This article shows requests for truck map tiles.

User story

The user wants to obtain two images showing a truck map tile for an area west of the central station in Berlin, Germany. The first tile is to show a normal day view of the map indicating public truck information. The second tile is to show only those roads where trucks are allowed as well as truck-related information (in other words, this tile is not to show truck information overlaid on a normal map). The third tile is the same as the first but without public transport information.

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 = trucktile or truckonlytile or trucknopttile, 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} = 16/35201/21491, see also The Mercator Projection
  {size} = 256, see also size
  {format} = png8, see also format
Parameters: None

Request for a Truck Map Tile

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

https://2.base.maps.cit.api.here.com
/maptile/2.1/trucktile/newest/normal.day/16/35201/21491/256/png8
?style=fleet
&app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}

Response to Truck Tile Request

The response to the request delivers the following image:

Figure 1. Truck Tile

Request for a Truck-information-only Tile

The code block below demonstrates a request for a truck-information-only tile.

https://2.base.maps.cit.api.here.com
/maptile/2.1/truckonlytile/newest/normal.day/16/35201/21491/256/png8
?style=fleet
&app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}

Response to Truck-information-only Tile Request

The response contains the image below. Note that the tile contains a transparent background, which is shown here in black.

Figure 2. Truck-only Tile

Request for a Truck no Public Transport Map Tile

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

https://2.base.maps.cit.api.here.com
/maptile/2.1/trucknopttile/newest/normal.day/16/35201/21491/256/png8
?style=fleet
&app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}

Response to Truck no Public Transport Tile Request

The code block below demonstrates a request for a truck-no-public-transport tile.

Figure 3. Truck-no-public-transport Tile