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

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.