GuidesAPI Reference
Guides

Migrate from HERE Map Tile API v2 to HERE Raster Tile API v3

The HERE Raster Tile API v3 is a REST API that allows you to request map tile images for all regions in the world. These map tiles, when combined in a grid, form a complete map of the world. This is the replacement service for the HERE Map Tile API v2 service.

📘

Note

Accessing HERE Raster Tile API v3 requires a HERE platform account. Previously used HERE developer accounts do not work for HERE Raster Tile API v3.

Changes overview

You must take the following actions to complete the migration:

  1. Ensure that you are using API keys or OAuth tokens corresponding to your HERE platform account.
  2. Adapt or change the authentication method.
  3. Update request parameters.
  4. Update non-supported parameters.
  5. Remove metadata-specific query parameters.

Authentication method

HERE Raster Tile API v3 supports the API key and OAuth token authentication methods. For more information, refer to the Authentication section of HERE Raster Tile API v3 documentation.

Update request parameters

The HERE Raster Tile API v3 definition is different than that of the HERE Map Tile API v2. Please refer to the HERE Raster Tile API v3 documentation for a detailed documentation. In order to migrate from the HERE Map Tile API v2 to the HERE Raster Tile API v3, please take a look at the updated request parameters below:

1. Content and appearance (domain / scheme / style)

In the HERE Map Tile API v2, content and appearance of the rendered map tile is defined using the service domain, scheme resource and style parameter. To achieve the same in HERE Raster Tile API v3, the style parameter is used.

Style and scheme migration
HERE Map Tile API v2 styleHERE Map Tile API v2 schemeHERE Raster Tile API v3 parameters
defaultnormal.daystyle=explore.day, this is the default value and can be omitted
defaultnormal.day.greystyle=lite.day
defaultnormal.day.transitstyle=explore.day&features=public_transit:all_systems, the style parameter is set to the default value and can be omitted
defaultnormal.day.customnot supported
defaultnormal.nightstyle=explore.night
defaultnormal.night.greystyle=lite.night
defaultpedestrian.daystyle=explore.day, this is the default value and can be omitted
defaultpedestrian.nightstyle=explore.night
defaultcarnav.day.greystyle=lite.day
defaultreduced.daystyle=lite.day
defaultreduced.nightstyle=lite.night
defaultnormal.traffic.daystyle=lite.day
defaultnormal.night.transitstyle=explore.night&features=public_transit:all_systems
defaultnormal.day.mobilestyle=explore.day&ppi=400, the style parameter is set to the default value and can be omitted
defaultnormal.day.gray.mobilestyle=lite.day&ppi=400
defaultnormal.day.transit.mobilestyle=explore.day&features=public_transit:all_systems&ppi=400, the style parameter is set to the default value and can be omitted
defaultnormal.night.mobilestyle=explore.night&ppi=400
defaultnormal.night.grey.mobilestyle=lite.night&ppi=400
defaultpedestrian.day.mobilestyle=explore.day&ppi=400
defaultpedestrian.night.mobilestyle=explore.night&ppi=400
defaultnormal.night.transit.mobilestyle=explore.night&features=public_transit:all_systems&ppi=400
defaultterrain.daystyle=topo.day
defaultsatellite.daystyle=satellite.day
defaulthybrid.daystyle=explore.satellite.day
defaulthybrid.grey.daystyle=lite.satellite.day
defaulthybrid.day.transitstyle=explore.satellite.day&features=public_transit:all_systems
defaultterrain.day.mobilestyle=topo.day&ppi=400
defaulthybrid.day.mobilestyle=explore.satellite.day&ppi=400
alpsanysee default
fleetnormal.daystyle=logistics.day
flameanynot supported
minianynot supported
wingsanynot supported
dreamworksanynot supported
Example
HERE Map Tile API v2
https://1.base.maps.ls.hereapi.com/maptile/2.1/maptile/newest/normal.night/11/1100/671/256/png8?style=default&apiKey=YOUR_HERE_API_KEY
HERE Raster Tile API v3
https://maps.hereapi.com/v3/base/mc/11/1100/671/png8?style=explore.night&apiKey=YOUR_HERE_API_KEY

To view satellite tile images in the HERE Map Tile API v2 the aerial domain is used. In the HERE Raster Tile API v3, specifying style=satellite.day parameter renders a satellite tile image.

Example
HERE Map Tile API v2
https://1.aerial.maps.ls.hereapi.com/maptile/2.1/maptile/newest/satellite.day/11/1100/671/256/jpg?apiKey=YOUR_HERE_API_KEY
HERE Raster Tile API v3
https://maps.hereapi.com/v3/base/mc/11/1100/671/jpeg?style=satellite.day&apiKey=YOUR_HERE_API_KEY

Query the /info resource to check the available HERE Raster Tile API v3 styles to specify the query accordingly, for example:

https://maps.hereapi.com/v3/info?apiKey={YOUR_API_KEY}

2. Resource

In the HERE Map Tile API v2 tile content is defined using resource. HERE Raster Tile API v3 supports only the following 'resource' values: base, background, blank and label.

Resource name migration
DescriptionHERE Map Tile API v2HERE Raster Tile API v3
Administrative Labelsalabeltilenot supported
Base Map Tilebasetilebackground
Base Line Map Tileblinetilenot supported
Label Tilelabeltilelabel
Line Tilelinetilenot supported
Lines and Labels Tilelltilenot supported
Map Tilemaptilebase
Street Tilestreettilenot supported
Truck Tiletrucktilebase with parameter features=vehicle_restrictions:active_and_inactive or features=vehicle_restrictions:permanent_only
Truck Only Tiletruckonlytileblank with parameter features=vehicle_restrictions:active_and_inactive or features=vehicle_restrictions:permanent_only
Extra Base Map Tilexbasetilenot supported
Truck No Public Transport Tiletrucknopttilebase with parameter features=vehicle_restrictions:active_and_inactive or features=vehicle_restrictions:permanent_only
Map No Public Transport Tilemapnopttilebase
Query the /info resource to check available HERE Raster Tile API v3 resources, for example:
https://maps.hereapi.com/v3/info?apiKey={YOUR_API_KEY}
Example
HERE Map Tile API v2
https://1.base.maps.ls.hereapi.com/maptile/2.1/trucktile/newest/normal.day/11/1100/671/256/png8?apiKey=YOUR_HERE_API_KEY
HERE Raster Tile API v3
https://maps.hereapi.com/v3/base/mc/11/1100/671/png8?features=vehicle_restrictions:active_and_inactive&style=explore.day&apiKey=YOUR_HERE_API_KEY

3. Image format

HERE Raster Tile API v3 supports the same image formats as HERE Map Tile API v2. The value names are different.

Image format value migration
HERE Map Tile API v2HERE Raster Tile API v3
pngpng
png8png8
jpgjpeg
Example
HERE Map Tile API v2
https://1.base.maps.ls.hereapi.com/maptile/2.1/maptile/newest/normal.day/11/1100/671/256/jpg?apiKey=YOUR_HERE_API_KEY
HERE Raster Tile API v3
https://maps.hereapi.com/v3/base/mc/11/1100/671/jpeg?apiKey=YOUR_HERE_API_KEY

4. Size

In the HERE Raster Tile API v3, the map tile image size is specified as an optional parameter size as opposed to the mandatory parameter size of HERE Map Tile API v2.

Image size value migration
HERE Map Tile API v2HERE Raster Tile API v3
128not supported, use 256 or 512 instead
256256 default value
512512
Example
HERE Map Tile API v2
https://1.base.maps.ls.hereapi.com/maptile/2.1/maptile/newest/normal.day/11/1100/671/512/png8?apiKey=YOUR_HERE_API_KEY
HERE Raster Tile API v3
https://maps.hereapi.com/v3/base/mc/11/1100/671/png8?size=512&apiKey=YOUR_HERE_API_KEY

5. Language

In the HERE Raster Tile API v3, language is specified using lang and lang2 parameters in comparison to lg and lg2 parameters of HERE Map Tile API v2.

Language parameter name migration
DescriptionHERE Map Tile API v2HERE Raster Tile API v3
First languagelglang
Second language - dual labelinglg2lang2
Language parameter value migration

In the HERE Map Tile API v2 the value of the lg and lg2 parameters is in the MARC three-letter language code.

In the HERE Raster Tile API v3, lang and lang2 are BCP47 language code limited to ISO 639-1 two-letter language code and, optionally, ISO 15924 four-letter script code.

Example
HERE Map Tile API v2
https://1.base.maps.ls.hereapi.com/maptile/2.1/maptile/newest/normal.day/11/1438/914/256/png8?lg=HIN&lg2=ENG&apiKey=YOUR_HERE_API_KEY
HERE Raster Tile API v3
https://maps.hereapi.com/v3/base/mc/11/1438/914/png8?lang=hi&lang2=en&apiKey=YOUR_HERE_API_KEY

Query the /languages resource of HERE Raster Tile API v3 to check available languages and update the HERE Map Tile API v2 query accordingly.

6. Pixels per inch (PPI)

HERE Raster Tile API v3 supports different ppi values than HERE Map Tile API v2.

PPI value migration
HERE Map Tile API v2HERE Raster Tile API v3
72100
250200
320200 or 400
500400
Example
HERE Map Tile API v2
https://1.base.maps.ls.hereapi.com/maptile/2.1/maptile/newest/normal.day/11/1100/671/256/png8?&ppi=500&apiKey=YOUR_HERE_API_KEY
HERE Raster Tile API v3
https://maps.hereapi.com/v3/base/mc/11/1100/671/png8?ppi=400&apiKey=YOUR_HERE_API_KEY

7. Geopolitical views

Query the /meta/pviews resource to check geopolitical views supported in HERE Map Tile API v2.

Query the /politicalViews resource to check geopolitical views supported in HERE Raster Tile API v3. Update HERE Map Tile API v2 query if a non-supported geopolitical view is used.

Geopolitical view parameter value migration

In the HERE Map Tile API v2, the pview parameter is using the ISO 3166-1 alpha-3 country code.

In the HERE Raster Tile API v3, the pview parameter is using the ISO 3166-1 alpha-2 country code.

Example
HERE Map Tile API v2
https://1.base.maps.ls.hereapi.com/maptile/2.1/maptile/newest/normal.day/11/1100/671/256/png8?&pview=ARG&apiKey=YOUR_HERE_API_KEY
HERE Raster Tile API v3
https://maps.hereapi.com/v3/base/mc/11/1100/671/png8?pview=AR&apiKey=YOUR_HERE_API_KEY

8. POIs

In the HERE Map Tile API v2, POIs are handled using the pois parameter. The pois specifies mask of POI categories.

In the HERE Raster Tile API v3, POIs can be handled using the pois feature. The feature can only enable or disable all POIs, by setting 'all' or 'disable' respectively.

Query the /features resource to check available features corresponding to HERE Raster Tile API v3 styles.

Example
HERE Map Tile API v2
https://1.base.maps.ls.hereapi.com/maptile/2.1/maptile/newest/normal.day/17/70399/42969/256/png8?pois=0&apiKey=YOUR_HERE_API_KEY
HERE Raster Tile API v3
https://maps.hereapi.com/v3/base/mc/17/70399/42969/png8?features=pois:disabled&apiKey=YOUR_HERE_API_KEY

9. Congestion uones and environmental zones

In the HERE Map Tile API v2, congestion and environmental zone display is handled with the congestion parameter.

In the HERE Raster Tile API v3, congestion zones and environmental zones are handled independently with the congestion_zones and environmental_zones features.

Example
HERE Map Tile API v2
https://1.base.maps.ls.hereapi.com/maptile/2.1/maptile/newest/normal.day/9/272/177/256/png8?congestion&apiKey=YOUR_HERE_API_KEY
HERE Raster Tile API v3
https://maps.hereapi.com/v3/base/mc/9/272/177/png8?features=environmental_zones:all,congestion_zones:all&apiKey=YOUR_HERE_API_KEY

10. Copyright

In the HERE Raster Tile API v3, copyright information is provided through a dedicated /copyright endpoint. This endpoint returns structured JSON data containing copyright providers, their applicable bounding boxes, zoom level ranges, and associated map styles.

❗️

You must display copyright notices in a reasonably conspicuous manner on every visualized map.

For more information about the copyright information display format, client-side constraints, and other details, see Required copyright notice.

Non-supported parameters

1. Map version

HERE Raster Tile API v3 supports only the latest map version.

2. Metadata queries

HERE Raster Tile API v3 does not support metadata queries. Alternatives are:

Remove the metadata query parameters:

  • metadata
  • output
  • callback_func
  • filter
  • mgen
  • range