Map Tile API Developer's Guide

Quick Start

This article demonstrates the simplest way to use the Map Tile API.

Map Tile Resources

The Map Tile API uses different URLs to provide different map tiles, depending on the specific use case.

The resources are explained in detail in the Map Tile Resources and URL usage, but here is a simple overview:
  • Base: provides map tiles using the map as a background
  • Aerial: provides map tiles using satellite images as a background
  • Pano: provides map tiles using map and panorama coverage as a background
  • Traffic: provides map tiles with a traffic flow overlay

Making the First Request

The simplest request scenario is to obtain the most up-to-date day-time map image that includes a particular location.

The Map Tile API uses a grid of map tiles that, combined, form a complete map of the world using the Normalized Mercator projection.

Thus, a request corresponding to the simple scenario above must provide:

  • the unique URL of the API resource that is to process the request for a map image
  • path variables that specify the details of the request (zoom level, map tile location in the grid, etc.)
  • authentication parameters

The authentication parameters are app_id and app_code. Their values are the authentication credentials required for access to the API resources. For further information, see Acquiring Credentials.

The examples below show requests for a map tile at zoom level 13, located in the 4400th column and the 2686th row in the tile grid for the different URLs (to understand how these tile coordinates were obtained, see The Mercator Projection). The tile resolution is 256x256 pixels, and the tile format is PNG8.

The responses show a tile for each of the supported URLs.

https://1.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/normal.day/13/4400/2686/256/png8
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}

The response from the base URL delivers a map tile image of part of Berlin, Germany.

Figure 1. Map-based image of a location in Berlin, Germany from the base URL
https://1.aerial.maps.cit.api.here.com
/maptile/2.1/maptile/newest/hybrid.day/13/4400/2686/256/png8
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}

The response from the aerial URL delivers a map tile image of part of Berlin, Germany.

Figure 2. Satellite-based image of a location in Berlin, Germany from the aerial URL
https://1.pano.maps.cit.api.here.com
/maptile/2.1/rctile/newest/normal.day/8/125/96/256/png8
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}

The response from the pano URL delivers a map tile image of part of Madrid, Spain.

Figure 3. Panorama coverage image of a location in Madrid, Spain from the pano URL
https://1.traffic.maps.cit.api.here.com
/maptile/2.1/traffictile/newest/normal.day/13/4400/2686/256/png8
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}

The response from the traffic URL delivers a map tile image including traffic for part of Berlin, Germany.

Figure 4. A map-based image with traffic of a location in Berlin, Germany from the traffic URL