map tile api - heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/map tile api...

63
Map Tile API Developer's Guide Version 2.1.32.1

Upload: others

Post on 17-Mar-2020

13 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile APIDeveloper's Guide

Version 2.1.32.1

Page 2: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 2►  Contents  

Contents

Legal Notices..........................................................................................................................................................4

Document Information.................................................................................................................................... 5

Chapter 1: Overview................................................................................................................................. 6What is the Map Tile API?.............................................................................................................................7

Why use the Map Tile API?...........................................................................................................................7

Chapter 2: Quick Start........................................................................................................................... 8Making the First Request..............................................................................................................................9

Chapter 3: User Guide......................................................................................................................... 11Acquiring Credentials...................................................................................................................................12

Constructing a Request.............................................................................................................................. 12

Customer Integration Testing.......................................................................................................14

Key Concepts.................................................................................................................................................14

Mercator Projection.........................................................................................................................15

Using a Tile Address........................................................................................................................17

Requesting the Right Map Version.......................................................................................................... 17

Traffic.............................................................................................................................................................. 19

Examples.........................................................................................................................................................23

Normal Day Tile................................................................................................................................23

Normal Day Grey Tile......................................................................................................................24

Terrain Map Tile............................................................................................................................... 26

Satellite Map Tile..............................................................................................................................27

Hybrid Map Tile.................................................................................................................................29

Normal Day Transit Map Tile.........................................................................................................30

Fleet Tile.............................................................................................................................................32

Truck Tile........................................................................................................................................... 34

Page 3: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 3►  Contents  

Traffic Tile..........................................................................................................................................36

Panorama Tile................................................................................................................................... 39

Service Support............................................................................................................................................ 42

Chapter 4: API Reference................................................................................................................. 43Resources....................................................................................................................................................... 44

Maptile................................................................................................................................................ 44

Info.......................................................................................................................................................50

Copyright............................................................................................................................................54

Version................................................................................................................................................ 61

HTTP Status Codes......................................................................................................................................62

Page 4: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 4►  Legal Notices  

Legal Notices© 2013 HERE. All rights reserved.

This material, including documentation and any related computer programs, is protected by

copyright controlled by HERE. All rights are reserved. Copying, including reproducing, storing,

adapting or translating, any or all of this material requires the prior written consent of HERE. This

material also contains confidential information, which may not be disclosed to others without the

prior written consent of HERE.

Trademark Acknowledgements

HERE and Nokia are trademarks or registered trademarks of Nokia Corporation in the United States

and other countries.

Other trade names are trademarks or registered trademarks of their owners.

Disclaimer

This content is provided "as-is" and without warranties of any kind, either express or implied,

including, but not limited to, the implied warranties of merchantability, fitness for a particular

purpose, satisfactory quality and non-infringement. Nokia does not warrant that the content is error

free and Nokia does not warrant or make any representations regarding the quality, correctness,

accuracy, or reliability of the content. you should therefore verify any information contained in the

content before acting on it.

To the furthest extent permitted by law, under no circumstances, including without limitation Nokia's

negligence, shall Nokia be liable for any damages, including, without limitation, direct, special,

indirect, punitive, consequential, exemplary and/ or incidental damages that result from the use or

application of this content, even if Nokia or an authorized representative has been advised of the

possibility of such damages.

Page 5: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 5►  Document Information  

Document Information 

 

Product

   Name: Map Tile API

   Version: Version 2.1.32.1

   

Document

   Name: Map Tile API Developer's Guide

   Id: c3ec9b4-1383581503

   Status: FINAL

   Date: 2013-Nov-04, 16:12 (GMT)

Page 6: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 6►  Overview  

Chapter

1

OverviewTopics:

• What is the Map Tile API?

• Why use the Map Tile API?

This document introduces the Map Tile API and:

• explains key concepts

• provides examples

• documents resources and query parameters

• documents response structures and data types

Page 7: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 7►  Overview  

What is the Map Tile API?HERE Map Tile API is a RESTful API that retrieves map images for all regions of the world.

To get a map image, formulate a request that combines the URL and a set of parameters to specify

details such as position, format, zoom level, map type of the map image. You can embed the

resulting map image in web pages and applications.

Why use the Map Tile API?Map Tile API addresses for the following high level use cases.

• get a map tile image

• specify the viewing scheme of a map tile image

• specify the zoom level of a map tile image

• specify the resolution of a map tile image

• identify different map versions

• retrieve map copyright information

Page 8: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 8►  Quick Start  

Chapter

2

Quick StartTopics:

• Making the First Request

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

Page 9: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 9►  Quick Start  

Making the First RequestThe 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 reflecting

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. Note that demo credentials are available and can

be used for testing, but application-specific credentials are required in commercial applications – see

Acquiring Credentials on page 12 for further information.

The example below shows a request for a map tile at zoom level 13, located in 4400th column and

2686th row in the tile grid (to understand how these tile coordinates were obtained, see Mercator

Projection on page 15). The tile resolution is 256x256 pixels, and the tile format PNG8.

http://1.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/normal.day/13/4400/2686/256/png8?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

Page 10: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 10►  Quick Start  

The response delivers a map tile image of part of Berlin, Germany.

Figure 1: A location in Berlin, Germany

Page 11: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 11►  User Guide  

Chapter

3

User GuideTopics:

• Acquiring Credentials

• Constructing a Request

• Key Concepts

• Requesting the Right Map Version

• Traffic

• Examples

• Service Support

The articles in this section provide a guide to using the Map Tile

API.

Page 12: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 12►  User Guide  

Acquiring CredentialsAll users of HERE APIs must obtain authentication and authorization credentials and provide them as

values for the parameters app_id and app_code. The credentials are assigned per application.

To obtain the credentials for an application, please visit http://developer.here.com/get-started for

more details.

Constructing a RequestA request to the Map Tile API includes the basic elements shown in the following table and, in

addition, it may contain resource-specific parameters.

Table 1: Basic request elements

Element Value/Example Note Description

Base URL Map Tiles

http://{1-4}.base.maps.api.here.com

Aerial Tiles

http://{1-4}.aerial.maps.api.here.com

Traffic Tiles

http://{1-4}.traffic.maps.api.here.com

Pano Tiles

http://{1-4}.pano.maps.api.here.com

See also LoadBalancing and URLson page 13

Production environment

Map Tiles

http://{1-4}.base.maps.cit.api.here.com

Aerial Tiles

http://{1-4}.aerial.maps.cit.api.here.com

Traffic Tiles

http://{1-4}.traffic.maps.cit.api.here.com

See also LoadBalancing and URLson page 13

CIT environment: see CustomerIntegration Testing on page14

Page 13: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 13►  User Guide  

Element Value/Example Note Description

Pano Tiles

http://{1-4}.pano.maps.cit.api.here.com

Path /maptile/2.1/  

Resource maptile/

basetile/

labeltile/

rctile/

rconlytile/

rcdistonlytile/

trucktile/

truckonlytile/

info

copyright/

version

traffictile/

flowtile/

[1]

[1]

[1]

[2]

[2]

[2]

[1]

[1]

[3]

[3]

[3]

[4]

[4]

GET only, specify requestdetails via query parameters.See Maptile on page 44,Info on page 50 or Copyrighton page 54 for a moredetailed parameter list for eachresource.

Application Code ?app_code=AJKnXv84fjrb0KIHawS0Tg Substitute your own unique

app_code

Application Id &app_id=DemoAppId01082013GAL Substitute your own unique

app_id

Notes:

[1] Please use normal tile base URL for this request. Keep in mind that for some schemes you

should use the aerial tile base URLs, check in the API definition.

[2] Please use pano tile base URL for this request.

[3] Please use the right base URL depending on which environment do you want to get information

from.

[4] Please use traffic tile base URL for this request.

Load Balancing and URLs

The servers that process requests against the Map Tile API resources are distributed for optimized

load balancing. Clients can take advantage of this and improve response times, especially when

submitting multiple simultaneous requests, by using URL prefixes (1 - 4). The numeric prefix must be

the first part of the request URL after "http://".

Page 14: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 14►  User Guide  

There are different ways to take advantage of these mechanism, no method is enforced from the

server, although the method used should ensure that your requests are distributed among the

different prefixes and do not use only one. We propose the following methods:

• Choose the prefix randomly.

• Choose the prefix depending on the parity of the row and column number:

1 – when both the row and the column number are even

2 – when the row number is even, the column number is odd

3 – when the row number is odd, the column number is even

4 – when both the row and the column number are odd

• Use a simple formula such as:

1 + ((row_number + column_number) % 4)

In this formula, % indicates modulo division.

Customer Integration TestingHERE is committed to maintain the best possible production service for all customers. Given that the

production environment is live and common to all API users, we request that you use the alternative

Customer Integration Testing (CIT) environment when evaluating our products, running tests, making

changes in your code and altering the way you access our APIs.

The CIT environment also allows you to test your software against a newer version of the service

before HERE brings that version into production. CIT offers a fully functional environment for

customers to use for development and testing, but it does not support high loads or performance

testing in general.

Note that the same application id can be used in both environments, but CIT may require a dedicated

application code. If this is the case, please contact us as described under Service Support on page

42.

The CIT environment is not intended for general production use.

Key ConceptsThis section provides insights into the key concepts used throughout the Map Tile API.

Page 15: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 15►  User Guide  

Mercator ProjectionThe Map Tile API serves map tiles obtained by mapping points on the surface of a sphere (the globe)

to points on a plane, using the normalized Mercator projection.

The basic Mercator projection formula is this:

{λ, φ} -> x[-1, 1] y [-1, 1]

In this formula:

λ = longitude

φ= latitude

x = λ / π

y = ln(tan(π/4 + φ/2)) / π

The plane represents the globe as a square grid of map tiles. The size of the grid depends on the map

zoom level. At the lowest zoom level, the world is contained in one map tile. At the next higher zoom

level, the world is two tiles wide and two tiles high (2x2), at the next level above that, the grid is 4x4,

then 8x8, 16x16, and so on up to the maximum zoom for a particular region. In other words, at each

zoom level the tiles that make up the complete map of the world form a grid in which the number of

tiles is equal to the zoom level raised to the power of two (zoom2).

The relationship between tiles at two consecutive zoom levels can be expressed as follows:

col1,z+1 = (2*colz) + 1row1,z+1 = (2*rowz) + 1

In this formula:

col = column number in the tile grid

row = row number in the tile grid

z = zoom level

Page 16: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 16►  User Guide  

The diagram below demonstrates this graphically:

Figure 2: Tiles at different zoom levels

You can use this information to obtain the grid coordinates (row and column) of the map tile for a

particular geographic location in your application. The following pseudo code contains the complete

algorithm:

--- javascript ---var lat = 52.525439, // Latitudelon = 13.38727, // Longitudez = 12, // Zoom levellatRad,n,xTile,yTile;

latRad = lat * Math.PI / 180;n = Math.pow(2, z);xTile = n * ((lon + 180) / 360);yTile = n * (1-(Math.log(Math.tan(latRad) + 1/Math.cos(latRad)) /Math.PI)) / 2;

--- output ---lat_rad = 0.916n = 4096xTile = 2200.31 // ColumnyTile = 1343.20 // Row

The zoom level and tile row and column can be used as URL variables separated by the '/' character in

map tile requests. Note that they must be provided in this order: zoom/column/row. This is the [Z]/

[X]/[Y] addressing scheme.

Page 17: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 17►  User Guide  

The map tile specification is typically preceded by other path variables and may be followed either by

further path variables and/or query parameters.

Using a Tile AddressA request that includes a tile address in the format zoom/column/row can be formulated as follows:

http://2.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/normal.day/12/2200/1343/256/png8?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

In this case, the request obtains a map tile at zoom level 12 for part of Berlin, Germany:

Figure 3: A map tile for part of Berlin

Requesting the Right Map VersionThe Map Tile API offers:

• regularly updated maps

Page 18: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 18►  User Guide  

• different map versions for certain regions of the world to meet the legal requirements in specific

countries

The response to a metadata request lists all the available map versions as elements named map,

grouped by the attribute region. The response identifies the most recent map version in each

region with the attribute id set to the value "newest". The following excerpt shows an example of a

map version list:

<maps> <map region="all" id="newest" /> <map region="all" newest="true" id="0.2.45.110" hash="c376276c01" /></maps>

When requesting map tiles, use URL variables to indicate the most recent map or a specific map

version:

• newest – to request the most recent map version available, for example:

http://2.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/normal.day/11/1202/843/256/png8?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

• a hash value – to request a specific map version; the actual URL variable is the value of the

attribute hash from the response to a metadata request (see the response excerpt above), for

example; here is a map tile request that uses a hash value instead of /newest/.

Note that the hash values identifying map versions change as a result of software updates, even

if the map ids remain the same. To get a valid response to the query, make a metadata request

request first, and substitute a current map hash value for c376276c01 in the following URL:

http://2.base.maps.cit.api.here.com/maptile/2.1/maptile/c376276c01/normal.day/11/1202/843/256/png8?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

Note: Metadata requests retrieve information specific to the base URLs they target. Thisinformation cannot be used in subsequent requests that use other base URLs. For example, toobtain a traffic map version, use metadata from the response to a request addressed to theTraffic Tiles base URL, but for a version of aerial map, use metadata from the response to arequest addressed to Aerial Tiles base URL.

Page 19: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 19►  User Guide  

TrafficThis article provides basic information about traffic tiles, explains how to access them and the

available options. It also demonstrates the visual styles used by the different types of traffic tiles.

Traffic tiles display current (always up-to-date) traffic information. The information reflects

congestion and is presented to the user by the lines drawn over or along the affected streets and

roads. The line color depends on the information to be conveyed (colors are configured using the

scheme attribute on the request). For example in the normal.day scheme, the meaning of colors is

as follows:

green no congestion or very light traffic congestion

yellow medium traffic congestion

red heavy traffic congestion

black road blockage

It is important to bear in mind that traffic information remains valid only for a short period of time

(approximately 15 minutes). For this reason, client applications should cache traffic tiles only briefly

or should not use caching at all.

As with map data, traffic information is not available in all countries and in some countries availability

is limited to certain areas. The table below provides the details of coverage.

Table 2: Traffic data availability

Country name Availability

Austria all areas

Belgium all areas

Denmark all areas

Finland all areas

France all areas

Germany all areas

Greece all areas

Ireland all areas

Italy all areas

Luxembourg all areas

Page 20: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 20►  User Guide  

Country name Availability

Netherlands all areas

Norway all areas

Poland all areas

Portugal all areas

Russia all areas

Spain all areas

Sweden all areas

Switzerland all areas

Turkey all areas

United Kingdom all areas

Ukraine all areas

Saudi Arabia all areas

South Africa all areas

UAE all areas

Argentina all areas

Brazil all areas

Canada Hamilton-Burlington - ON

Kitchener - ON

London - ON

Windsor - ON

St. Catharines-Niagara Falls-Welland - ON

Oshawa-Whitby-Clarington - ON

Toronto-Mississauga - ON

Ottawa-Gatineau - ON-QC

Montreal-Laval - QC

Quebec - QC

Vancouver-Surrey-Burnaby - BC

Edmonton - AB

Calgary - AB

Mexico Mexico City

Guadalajara

Monterrey

Page 21: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 21►  User Guide  

Country name Availability

USA Detailed coverage info can be found here

Australia Canberra Metro

Sydney Metro

Melbourne Metro

Brisbane Metro

Adelaide Metro

Perth Metro

Hobart

Darwin

China Beijing

Changchun

Changsha

Chengdu

Chongqin

Dongguan

Foshan

Fuzhou

Guangzhou

Hangzhou

Nanjing

Ningbo

Qingdao

Shanghai

Shenyang

Shenzhen

Shjiazhuang

Tianjin

Wuhan

India Delhi NCR

Greater Mumbai

Bangalore

Malaysia all areas

New Zealand all areas

Thailand all areas

Page 22: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 22►  User Guide  

It is important to note that even if traffic information is available for a specific country, there may be

roads or places for which it cannot be obtained. The quality and range of traffic data for the covered

areas and street types (highways, main roads, local streets, etc.) vary between countries and depend

on the available data.

Detailed information about traffic tile request parameters can be found under Maptile on page 44.

A Traffic Tile Request

The following example request obtains a basic traffic tile for the map view scheme normal.day.

Note that the request is shown with a variable element {type} – for possible values, please see

Traffic Tile Types on page 22

http://1.traffic.maps.cit.api.here.com/maptile/2.1/{type}/newest/normal.day/12/2200/1343/256/png8?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

Traffic Tile Types

In the example above, {type} is a variable element. Its value can be one of the following tile types:

traffictile/

flowtile/

The tile type specified in the request determines the visual style of the image delivered in the

response. The images below demonstrate the full range of possible styles. For easy comparison, the

leftmost map tile is one without traffic information, while the remaining images follow the order of

tile types in the list above.

Figure 4: Traffic information in map tiles

Page 23: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 23►  User Guide  

ExamplesThis section provides examples of requests against the Map Tile API resources along with the

corresponding results.

Note that all requests require the authentication credentials provided via the parameters app_id

and app_code (see Acquiring Credentials on page 12). The example requests in the following

articles show all the required parameters, but discuss only those specific to each request.

Normal Day TileThis article shows a request for a normal day map tile.

User story

The user wants to obtain an image showing a map of the area north of Cairo in Egypt. The tile is to

represent the normal day view of the map.

Request Summary

The following list summarizes the elements required to create a request matching the user story and

shows, in square brackets, how the those elements are used in the example(s) below. Note that the

request example also uses the authentication parameters.

Resource: maptile [maptile], see also (resource) type

URL variables: {map id} [newest], see also Requesting the Right Map Version on page 17

  {scheme} [normal.day], see also scheme

  {zoom}/{column}/{row} [11/1202/843], see also Mercator Projection on

page 15

  {size} [256], see also size

  {format} [png8], see also format

Page 24: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 24►  User Guide  

RequestThe code block below demonstrates a complete request for a map tile.

http://2.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/normal.day/11/1202/843/256/png8?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

ResponseThe response to the request delivers the following image:

Figure 5: Normal Day Tile

Normal Day Grey TileThis article shows a request for a color-reduced map tile in daylight mode (used for background

maps).

User story

The user wants to obtain an image showing a map of the area north of Cairo in Egypt. The tile is to

represent the normal day grey view of the map.

Page 25: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 25►  User Guide  

Request Summary

The following list summarizes the elements required to create a request matching the user story and

shows, in square brackets, how the those elements are used in the example(s) below. Note that the

request example also uses the authentication parameters.

Resource: maptile [maptile], see also (resource) type

URL variables: {map id} [newest], see also Requesting the Right Map Version on page 17

  {scheme} [normal.day.grey], see also scheme

  {zoom}/{column}/{row} [11/1202/843], see also Mercator Projection on

page 15

  {size} = 256, see also size

  {format} = png8, see also format

RequestThe code block below demonstrates a complete request for a map tile.

http://2.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/normal.day.grey/11/1202/843/256/png8?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

Page 26: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 26►  User Guide  

ResponseThe response to the request delivers the following image:

Figure 6: Normal Day Grey Tile

Terrain Map TileThis article shows a request for a terrain map tile.

User story

The user wants to obtain an image showing a terrain map tile of the area north of Cairo in Egypt. The

tile is to represent the normal day terrain view of the map.

Request Summary

The following list summarizes the elements required to create a request matching the user story and

shows, in square brackets, how the those elements are used in the example(s) below. Note that the

request example also uses the authentication parameters.

Resource: maptile [maptile], see also (resource) type

URL variables: {map id} [newest], see also Requesting the Right Map Version on page 17

  {scheme} [terrain.day], see also scheme

  {zoom}/{column}/{row} [11/1202/843], see also Mercator Projection on

page 15

Page 27: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 27►  User Guide  

  {size} [256], see also size

  {format} [png8], see also format

RequestThe code block below demonstrates a complete request for a terrain map tile.

http://1.aerial.maps.cit.api.here.com/maptile/2.1/maptile/newest/terrain.day/11/1202/843/256/png8?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

ResponseThe response to the request delivers the following image:

Figure 7: Terrain Map Tile

Satellite Map TileThis article shows a request for a satellite map tile in daylight mode.

User story

The user wants to obtain an image showing a satellite map tile of the area north of Cairo in Egypt. The

tile is to represent the normal day satellite view of the map.

Page 28: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 28►  User Guide  

Request Summary

The following list summarizes the elements required to create a request matching the user story and

shows, in square brackets, how the those elements are used in the example(s) below. Note that the

request example also uses the authentication parameters.

Resource: maptile [maptile], see also (resource) type

URL variables: {map id} [newest], see also Requesting the Right Map Version on page 17

  {scheme} [satellite.day], see also scheme

  {zoom}/{column}/{row} [11/1202/843], see also Mercator Projection on

page 15

  {size} [256], see also size

  {format} [png8], see also format

RequestThe code block below demonstrates a complete request for a satellite map tile.

http://2.aerial.maps.cit.api.here.com/maptile/2.1/maptile/newest/satellite.day/11/1202/843/256/png8?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

Page 29: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 29►  User Guide  

ResponseThe response to the request delivers the following image:

Figure 8: Satellite Tile

Hybrid Map TileThis article shows a request for a hybrid map tile in daylight mode.

User story

The user wants to obtain an image showing a hybrid map tile of the area north of Cairo in Egypt. The

tile is to show roads and labels over a satellite image, representing the normal day view of the map.

Request Summary

The following list summarizes the elements required to create a request matching the user story and

shows, in square brackets, how the those elements are used in the example(s) below. Note that the

request example also uses the authentication parameters.

Resource: maptile [maptile], see also (resource) type

URL variables: {map id} [newest], see also Requesting the Right Map Version on page 17

  {scheme} [hybrid.day], see also scheme

  {zoom}/{column}/{row} [11/1202/843], see also Mercator Projection on

page 15

Page 30: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 30►  User Guide  

  {size} [256], see also size

  {format} [png8], see also format

RequestThe code block below demonstrates a complete request for a hybrid map tile.

http://2.aerial.maps.cit.api.here.com/maptile/2.1/maptile/newest/hybrid.day/11/1202/843/256/png8?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

ResponseThe response to the request delivers the following image:

Figure 9: Hybrid Tile

Normal Day Transit Map TileThis article shows a request for a transit map tile.

User story

The user wants to obtain an image showing a transit map tile (public transport) for an area east

of Vincennes (suburb of Paris). The tile is to show a normal day view of the map indicating public

transport lines.

Page 31: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 31►  User Guide  

Request Summary

The following list summarizes the elements required to create a request matching the user story and

shows, in square brackets, how the those elements are used in the example(s) below. Note that the

request example also uses the authentication parameters.

Resource: maptile [maptile], see also (resource) type

URL variables: {map id} [newest], see also Requesting the Right Map Version on page 17

  {scheme} [normal.day.transit], see also scheme

  {zoom}/{column}/{row} [13/4152/2818], see also Mercator Projection on

page 15

  {size} [256], see also size

  {format} [png8], see also format

RequestThe code block below demonstrates a complete request for a transit map tile.

http://1.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/normal.day.transit/13/4152/2818/256/png8?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

Page 32: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 32►  User Guide  

ResponseThe response to the request delivers the following image:

Figure 10: Normal Day Transit Map Tile

Fleet TileThis article shows a request for a fleet map tile.

User story

The user wants to obtain an image showing a fleet map tile for an area west of the central station in

Berlin, Germany. The tile is to show a normal day view of the map indicating public fleet information.

Request Summary

The following list summarizes the elements required to create a request matching the user story and

shows, in square brackets, how the those elements are used in the example(s) below. Note that the

request example also uses the authentication parameters.

Resource: maptile [maptile], see also (resource) type

URL variables: {map id} [newest], see also Requesting the Right Map Version on page 17

  {scheme} [normal.day], see also scheme

  {zoom}/{column}/{row} [16/35201/21491], see also Mercator Projection

on page 15

Page 33: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 33►  User Guide  

  {size} [256], see also size

  {format} [png8], see also format

Parameters: style = ?style=fleet, see also style

RequestThe code block below demonstrates a complete request for a fleet map tile.

http://2.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/normal.day/16/35201/21491/256/png8?style=fleet&app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

ResponseThe response to the request delivers the following image:

Figure 11: Fleet Tile

Page 34: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 34►  User Guide  

Truck TileThis 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, while 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).

Request Summary

The following list summarizes the elements required to create a request matching the user story and

shows, in square brackets, how the those elements are used in the example(s) below. Note that the

request example also uses the authentication parameters.

Resource: maptile = trucktile or truckonlytile, see also (resource) type

URL variables: {map id} = newest, see also Requesting the Right Map Version on page

17

  {scheme} = normal.day, see also scheme

  {zoom}/{column}/{row} = 16/35201/21491, see also Mercator Projection

on page 15

  {size} = 256, see also size

  {format} = png8, see also format

Parameters: style = ?style=fleet, see also style

Request for a Truck Map TileThe code block below demonstrates a complete request for a truck map tile.

http://2.base.maps.cit.api.here.com/maptile/2.1/trucktile/newest/normal.day/16/35201/21491/256/png8?style=fleet&app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

Page 35: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 35►  User Guide  

Response to Truck Tile RequestThe response to the request delivers the following image:

Figure 12: Truck Tile

Request for a Truck-information-only TileThe code block below demonstrates a request for a truck-information-only tile.

http://2.base.maps.cit.api.here.com/maptile/2.1/truckonlytile/newest/normal.day/16/35201/21491/256/png8?style=fleet&app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

Page 36: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 36►  User Guide  

Response to Truck-information-only Tile RequestThe response contains the image below. Note that the tile contains a transparent background which

is shown here in black.

Figure 13: Truck-only Tile

Traffic TileThis article shows requests for map tiles that contain traffic information.

User story

The user wants to obtain a map tile displaying the current traffic conditions in a part of London and

another tile that displays the traffic flow in the same area of London.

Request Summary

The following list summarizes the elements required to create a request matching the user story and

shows, in square brackets, how the those elements are used in the example(s) below. Note that the

request example also uses the authentication parameters.

Page 37: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 37►  User Guide  

Resource: maptile [traffictile] or flowtile, see also (resource) type

URL variables: {map id} [newest], see also Requesting the Right Map Version on page 17

  {scheme} [normal.day], see also scheme

  {zoom}/{column}/{row} [15/16358/10898], see also Mercator Projection

on page 15

  {size} [256], see also size

  {format} [png8], see also format

Request for a Traffic Map TileThe code block below demonstrates a complete request for a traffic map tile.

http://1.traffic.maps.cit.api.here.com/maptile/2.1/traffictile/newest/normal.day/15/16358/10898/256/png8?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

Page 38: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 38►  User Guide  

Response to Truck Traffic Map Tile RequestThe response contains the following image.

Figure 14: Traffic tile for a part of London

Request for a Traffic Flow TileThe code block below demonstrates a request for a traffic tile, using the flowtile resource.

http://1.traffic.maps.cit.api.here.com/maptile/2.1/flowtile/newest/normal.day/15/16358/10898/256/png8?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

Page 39: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 39►  User Guide  

Response to Traffic Flow Tile RequestThe response contains the image below. Note that the tile contains a transparent background which

is shown here in black.

Figure 15: Transparent traffic tile for a part of London

Panorama TileThis article shows requests for map tiles that contain panorama information.

User story

The user wants to see the current panorama coverage of London. The tile is to represent the parts of

London currently covered with panoramas, as an overlay on top of the normal map tile.

Request Summary

The following list summarizes the elements required to create a request matching the user story and

shows, in square brackets, how the those elements are used in the example(s) below. Note that the

request example also uses the authentication parameters.

Page 40: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 40►  User Guide  

Resource: rctile or rconlytile, see also (resource) type

URL variables: {map id} [newest], see also Requesting the Right Map Version on page 17

  {scheme} [normal.day], see also scheme

  {zoom}/{column}/{row} [13/4094/2724], see also Mercator Projection on

page 15

  {size} [256], see also size

  {format} [png8], see also format

Request for a Panorama Map TileThe code block below demonstrates a complete request for a panorama map tile.

http://1.pano.maps.cit.api.here.com/maptile/2.1/rctile/newest/normal.day/13/4094/2724/256/png8?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

Page 41: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 41►  User Guide  

Response to Panorama Map Tile RequestThe response contains the following image.

Figure 16: Panorama tile for a part of London

Request for a Panorama Only TileThe code block below demonstrates a request for a panorama tile, using the rconlytile resource.

http://1.pano.maps.cit.api.here.com/maptile/2.1/rconlytile/newest/normal.day/13/4094/2724/256/png8?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

Page 42: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 42►  User Guide  

Response to Panorama Only Tile RequestThe response contains the image below. Note that the tile contains a transparent background which

is shown here in black.

Figure 17: Transparent panorama only tile for a part of London

Service SupportIf you need assistance with this or other HERE products, please contact your HERE representative or

Technical Customer Support via email at [email protected].

Page 43: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 43►  API Reference  

Chapter

4

API ReferenceTopics:

• Resources

• HTTP Status Codes

Descriptions of the resources, parameters, return types and error

codes of the HEREMap Tile API.

Map Tile API provides the following resources:

• Map tile request: returns a map tile image

• Traffic view/tile request: returns a map tile with a traffic

overlay

• Metadata: returns information about map regions, map tile

resolutions, format, and schemes

• Copyright: returns copyright information for specific map

types, map areas and map zoom levels

• Version: returns the software version

Page 44: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 44►  API Reference  

ResourcesThis section provides a comprehensive reference to the Map Tile API resources and the parameters

supported by those resources.

MaptileThis resource is responsible for servicing requests for a variety of map tile types that differ in terms

of the information they include and consequently also in terms of the visual style. A response delivers

a single map tile image or a set of four, nine or sixteen map tiles encoded as text.

Resource Types

To make a map tile request, use one of the following resource types:

maptile/

traffictile/

flowtile/

basetile/

labeltile/

rctile/

rconlytile/

rcdistonlytile/

trucktile/

truckonlytile/

A trafic tile request returns a single traffic tile image, or a set of four, nine or sixteen traffic tiles

encoded as text. To make a traffic tile request use the traffictile resource type or one of the

following alternative resource types:

traffictile/

flowtile/

Page 45: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 45►  API Reference  

Request FormatRequests against the maptile resource must follow the pattern summarized by the following

formula:.

http://{1-4}.base.maps.api.here.com/maptile/2.1/{type}/{map id}/{scheme}/{zoom}/{column}/{row}/{size}/{format}?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg&{param}={value}

In this formula, the first part is the base URL , followed by the URL path, API version and then the

parameters as detailed in the table below.

Note: Use the the Aerial Tiles base URL for all satellite, terrain and hybrid schemesand the Map Tiles base URL for any other requests.

The following table documents the basic parameters that can be used in a map tile request.

Table 3: Map tile request parameters

Parameter Type Description

app_code String (required) A URL-safe encoded string obtained during the application registration.

See Acquiring Credentials on page 12 for information on getting

credentials.

Note: Usage of token is accepted although is deprecated

app_id String (required) A URL-safe encoded string obtained during the application registration.

See Acquiring Credentials on page 12 for information on getting

credentials.

callback_func String (optional) A function name that is wrapped around the JSON output. This

technique allows for a more secure way of parsing the output with

JavaScript;

(e.g., callback_func=test)

Can return:

test( '{ ... }' );

col Integer (required) col – can be any number between 0 and number of columns - 1,both inclusive.

The number of tiles per column is a function of the zoom:

number of columns = 2zoom

congestion Boolean (optional) Flag that will enable congestion and environmental zones display, ifavailable for the requested tile.

It is available for the following list of tiles

Page 46: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 46►  API Reference  

Parameter Type Description

• maptile

• traffictile

• rctile

• trucktile

• truckonlytile

format String (required) Returned image format. The following image formats are supported:

png – PNG format, 24 bit, RGB

png8 – PNG format, 8 bit, indexed color

jpg – JPG format at 90% quality

Please note that JPG is recommended to be used for satellite andhybrid schemes only.

lg String (optional) The MARC three-letter language code for requesting a map tilerendered in a certain language. If the given language is not available, thedefault language eng is used.

The following languages are supported for the international version:

ara – Arabic

chi – Chinese (simplified)

cht – Chinese (traditional)

dut – Dutch

eng – English

fre – French

ger – German

gle – Gaelic

gre – Greek

heb – Hebrew

hin – Hindi

ind – Indonesian

ita – Italian

per – Persian

pol – Polish

por – Portuguese

rus – Russian

sin – Sinhalese

spa – Spanish

tha – Thai

tur – Turkish

ukr – Ukranian

urd – Urdu

vie – Vietnamese

The following languages are supported for the Chinese version:

chi – Chinese (simplified)

Page 47: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 47►  API Reference  

Parameter Type Description

cht – Chinese (traditional)

eng – English

map id String (required) Specifies the map version. One of:

• version id & – the map version of the requested map tile

resource; request the latest version by using newest as map id.

• hash & – A unique key, unambiguously representing a certain map

version.

See Requesting the Right Map Version on page 17 for more informationon map versions.

metadata String (optional) Type of metadata to generate, valid values are:

metaonly – only metadata are returned; output=base64 is

automatically on

metatile – both the requested image and the associated metadata

are returned; output=base64 is automatically on

output String (optional) Can only have the value base64 which indicates that the map tile is

returned as base64 encoded text instead of as a stand alone image.

pois Boolean (optional) If present, pois are shown from zoom level greater or equal to 15, if not

present, regular tiles are shown.

ppi Integer (optional) Pixels per inch. Resolution that can be requested, valid values are

between 72 and 600, both included. Standard values are:

72 – normal, used by default if no value provided

250 – mobile

320 – hi-res

Note: This parameter is not accepted for carnav scheme, for mobileschemes only mobile ppi value can be used, for hi-res schemes onlyhi-res ppi value can be used. For normal.day.custom only 72 isaccepted.

range String (optional) Only relevant if output=base64 is also specified as a parameter.

range must be one of 2x2, 3x3 or 4x4, which indicates the size of the

array of tiles returned. The tile specified by col and row is the top right

of the array, and must divide by the array size.

row Integer (required) row –  can be any number between 0 and number of rows - 1, bothinclusive.

The number of tiles per row is a function of the zoom: number ofrows = 2zoom.

scheme String (required) Specifies the view scheme. A complete list of the supported schemes

may be obtained by using the Info on page 50. The following schemes

are available:

Page 48: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 48►  API Reference  

Parameter Type Description

• normal.day – for a normal map view in daylight mode

• normal.day.custom – for a normal map view in daylight mode

• normal.day.grey – for a color-reduced map view in daylight

mode (especially used for background maps)

• normal.day.grey.mobile – mobile version of the scheme

• normal.day.mobile – mobile version of the scheme

• normal.day.transit – for a color-reduced map view with public

transport scheme in daylight mode

• normal.day.transit.mobile – mobile version of the scheme

• normal.night – for a normal map view in night mode

• normal.night.mobile – mobile version of the scheme

• normal.night.grey – for a color-reduced map view in night

mode (especially used for background maps)

• normal.night.grey.mobile – mobile version of the scheme

• carnav.day.grey – for a normal map view in daylight mode for

car navigation

• hybrid.day – for a satellite map view with streets in daylight

mode

• hybrid.day.mobile – mobile version of the scheme

• pedestrian.day – pedestrian map view in daylight mode for

mobile usage

• pedestrian.night – pedestrian map view in night mode for

mobile usage

• satellite.day – for a satellite map view in daylight mode

• terrain.day – for a terrain map view in daylight mode

• terrain.day.mobile – mobile version of the scheme

Note: For all satellite, hybrid and terrain schemes, the AerialTiles base URL must be used instead of the normal one. Invalidcombinations are rejected.

size Integer (required) Returned image size. The following sizes ([width, height]) are supported:

256 = [256, 256]

512 = [512, 512]

The following sizes ([width, height]) are deprecated, although usage is

still accepted:

128 = [128, 128]

Note: Raster coverage tiles (rctile, rconlytile andrcdistonlytile) only support 256 sizes.

Page 49: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 49►  API Reference  

Parameter Type Description

style String (optional) If present, selects the style to use to render the tile. The possible values

are:

fleet

Note: Only a subset of the schemes are available for the styles, it arecheck in runtime. If the scheme is not available for the given style a400 Error are generated.

Note: Fleet only supports normal.day, hybrid.day andterrain.day.

type String (required) Must have one of the following values:

maptile/

traffictile/

flowtile/

basetile/

labeltile/

rctile/

rconlytile/

rcdistonlytile/

trucktile/

truckonlytile/

traffictile/

flowtile/

Note: A traffic tile request (traffic or flow ) should always

use the Traffic Tiles base URL, and the URL variable newestto indicate map version. Although a hash value is accepted, it

should not be used as the life span of a traffic tile is too short.

Invalid base URL and/or paramater combinations are rejected.

zoom Integer (required) Zoom level of the map image. Minimum and maximum zoom levels are

specified in the Info on page 50.

Example Aerial Tile

This request example retrieves a satellite view map tile from the most recent (newest) map.

http://2.aerial.maps.cit.api.here.com/maptile/2.1/maptile/newest/satellite.day/11/1202/843/256/png8?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

Page 50: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 50►  API Reference  

Example Traffic Tile

This request example retrieves a traffic tile from the most recent (newest) map using default traffic

profile.

http://4.traffic.maps.cit.api.here.com/maptile/2.1/traffictile/newest/normal.day/18/140837/85990/256/png8?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

Infoinfo is a resource that retrieves information about the map rendering service available on the server

(metadata about the service), including the available map versions, map tile formats, resolutions, map

view schemes, supported map languages, etc.

The following example shows a metadata request addressing this resource.

http://1.base.maps.cit.api.here.com/maptile/2.1/info?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg&{param}={value}

Metadata requests retrieve information specific to the base URLs they target. This information

cannot be used in subsequent requests that use other base URLs. For example, to obtain a traffic

map version, use metadata from the response to a request addressed to the Traffic Tiles base URL,

but for a version of aerial map, use metadata from the response to a request addressed to Aerial

Tiles base URL.

A metadata request includes a number of mandatory and optional parameters. The table below

provides the details.

Table 4: Metadata request parameters

Parameter Type Description

app_code String (required) A URL-safe encoded string obtained during the application registration.

See Acquiring Credentials on page 12 for information on getting

credentials.

Note: Usage of token is accepted although is deprecated

app_id String (required) A URL-safe encoded string obtained during the application registration.

See Acquiring Credentials on page 12 for information on getting

credentials.

Page 51: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 51►  API Reference  

Parameter Type Description

callback_func String (optional) A function name that is wrapped around the JSON output. This

technique allows for a more secure way of parsing the output with

JavaScript;

(e.g., callback_func=test)

Can return:

test( '{ ... }' );

callback_id String (optional) If specified (associated with callback_func), the function wrapper

contains this id as first parameter. This allows the user to check if

the response is actually the response to the request, and not some

maliciously injected code; for example

callback_id=1425

returns:

test( '1425', '{ ...}' );

hash_for String (optional) Used to obtain the information about a specific map version. The

parameter is only valid if output is set to header. The parameter is

designed to offer automated caches a simple way to relate map version

strings to their current hash. The valid values of the parameter are:

"newest" – indicates the most recent map version

a string containing the map version ID – indicates that the hash forthis specific version is to be retrieved

If the parameter is used, the response header contains a key, maphash,with a hash value identifying the specified map version.

output String (optional) Output specifier. The API supports the following output specifier values

(and output formats):

• xml – delivers the API metadata in XML format according to the

XSD (this is the default).

• json – delivers the API metadata in JSON format; for JSONP

requests see parameter callback_func/callback_id

• xsd – delivers the specific XML schema (XSD) of the API metadata

to process and to verify the Service Meta Data Response.

Metadata Request Response

The following example shows a request for metadata to be delivered in XML format. An alternative

output format is JSON. Both output formats have the same structure and type names.

http://{1-4}.base.maps.api.here.com/maptile/2.1/info?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

Page 52: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 52►  API Reference  

The XML response to the above request contains the following data:

<?xml version="1.0" encoding="UTF-8"?><response> <maps> <map region="all" newest="true" id="8.30.53.106" hash="c376276c01" isbn="" /> </maps> <resolutions> <resolution id="256" height="256" width="256" /> <resolution id="128" height="128" width="128" /> </resolutions> <formats> <format encoding="png" bbp="24" id="png" /> <format encoding="png8" bbp="8" id="png8" /> <format encoding="jpg" bbp="24" id="jpg" /> </formats> <schemes> <scheme id="carnav.day.grey" /> <scheme id="normal.day.grey" /> <scheme id="normal.day.transit" /> <scheme id="normal.day" /> <scheme id="terrain.day" /> <scheme id="satellite.day" /> <scheme id="hybrid.day" /> <scheme id="hybrid.day.mobile" /> <scheme id="normal.day.grey.mobile" /> <scheme id="normal.day.mobile" /> <scheme id="normal.night.mobile" /> <scheme id="normal.day.transit.mobile" /> <scheme id="terrain.day.mobile" /> <scheme id="normal.day.custom" /> <scheme id="pedestrian.day" /> <scheme id="pedestrian.night" /> </schemes> <tiletypes> <tiletype id="maptile" /> <tiletype id="basetile" /> <tiletype id="xbasetile" /> <tiletype id="labeltile" /> </tiletypes> <languages> <language id="ARA" /> <language id="CHI" /> <language id="CHT" /> <language id="ENG" /> <language id="FRE" /> <language id="GER" /> <language id="ITA" /> <language id="POL" /> <language id="RUS" /> <language id="SPA" /> </languages> <zoomLevels min="0" max="20" /></response>

Page 53: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 53►  API Reference  

The table below describes the XML elements in this output.

Table 5: Elements in the output

Element Description

map Available maps. A map has the following attributes:

id: the map version, newest always refers to the latest map version. Several latest map versionsfor different regions are possible.

region: the region of the world where the map is valid, currently only all (world) is supported.

hash: the unique key use to reference the specific map version in the map id parameter of a maptile request Maptile on page 44.

isbn: unique identifier used for validated chinese maps, it will either be empty or not present forinternational maps.

resolution Supported map tile image resolutions. A resolution has the following attributes:

width: the width of the supported image resolution.

height: the height of the supported image resolution.

id: used to reference the resolution in the size parameter of a map tile request Maptile on page44.

format Supported image formats. A format has the following attributes:

encoding: the image encoding format, one of: png, png8 or jpg.

bbp: bytes per pixel, 8 bbp refers to a palette based image format, 24 bbp is a true RGB imageformat.

id: used to reference the format in the format parameter of a map tile request Maptile on page44.

scheme Supported map tile schemes. A scheme has the following attribute:

id: used to reference the scheme in the scheme parameter of a map tile request Maptile on page44.

tiletype Supported map tile types. A tiletype has the following attribute:

id: used to reference the scheme in the type parameter of a map tile request Maptile on page44.

language Supported languages for rendered map tiles. A language has the following attribute:

id: a MARC three-letter code used to reference the language in the lg parameter of a map tilerequest Maptile on page 44.

zoomLevels Minimum and maximum values for the zoom parameter in a map tile request Maptile on page 44.

min: minimum possible map tile zoom.

max: maximum possible map tile zoom.

Page 54: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 54►  API Reference  

CopyrightThe resource named copyright handles requests for copyright information about different map

tiles.

A typical request against this resource must comply with the following formula.

http://{1-4}.base.maps.api.here.com/maptile/2.1/copyright/{map id}?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

Note: Metadata requests retrieve information specific to the base URLs they target. This

information cannot be used in subsequent requests that use other base URLs. For example, to

obtain a traffic map version, use metadata from the response to a request addressed to the

Traffic Tiles base URL, but for a version of aerial map, use metadata from the response to a

request addressed to Aerial Tiles base URL.

In both output formats (XML and JSON), the copyright information associated with the different view

schemes, zoom level ranges, and geographical areas is shown. Variant copyrights are defined by the

bounding boxes and the relevant zoom level range. The default copyright information of the view

scheme has no restriction elements and is therefore valid for all remaining areas and zoom levels.

The table below describes the parameters that can be used to formulate a copyright information

request.

Table 6: Copyright information request paramaters

Parameter Type Description

app_code String (required) A URL-safe encoded string obtained during the application registration.

See Acquiring Credentials on page 12 for information on getting

credentials.

Note: Usage of token is accepted although is deprecated

app_id String (required) A URL-safe encoded string obtained during the application registration.

See Acquiring Credentials on page 12 for information on getting

credentials.

callback_func String (optional) A function name that is wrapped around the JSON output. This

technique allows for a more secure way of parsing the output with

JavaScript;

(e.g., callback_func=test)

Can return:

test( '{ ... }' );

Page 55: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 55►  API Reference  

Parameter Type Description

callback_id String (optional) If specified (associated with callback_func), the function wrapper

contains this id as first parameter. This allows the user to check if

the response is actually the response to the request, and not some

maliciously injected code; for example

callback_id=1425

returns:

test( '1425', '{ ...}' );

map id String (required) Specifies the map version. One of:

• version id & – the map version of the requested map tile

resource; request the latest version by using newest as map id.

• hash & – A unique key, unambiguously representing a certain map

version.

See Requesting the Right Map Version on page 17 for more informationon map versions.

output String (optional) Output specifier. The API supports the following output specifier values

(and output formats):

• xml – delivers the API metadata in XML format according to the

XSD (this is the default).

• json – delivers the API metadata in JSON format; for JSONP

requests see parameter callback_func/callback_id

• xsd – delivers the specific XML schema (XSD) of the API metadata

to process and to verify the Service Meta Data Response.

Example Copyright Request in XML

The following example requests copyright information in XML:

http://1.base.maps.cit.api.here.com/maptile/2.1/copyright/newest?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg&output=xml

The following code block shows the XML response.

<?xml version="1.0" encoding="UTF-8"?><copyrights xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="nokia:maptiler:copyright:1.0" xsi:schemaLocation="nokia:maptiler:copyright:1.0 CopyrightInfo.xsd"> <providers> <provider name="NavInfo"> <text>2010 NavInfo</text> <full>copyright 2010 NavInfo Co Ltd. All Rights Reserved</full> <link>http://www.nav2.com.cn/</link> </provider> <provider name="THTC">

Page 56: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 56►  API Reference  

<text>2011 THTC</text> <full>copyright 2011 Iran Maps provided by THTC</full> </provider> <provider name="DigitalGlobe"> <text>2011 DigitalGlobe</text> <full>copyright 2011 DigitalGlobe, Inc.</full> <link>http://www.digitalglobe.com/</link> </provider> <provider name="CIAT"> <text>SRTM V4, 2008, CIAT</text> <full>SRTM V4, copyright 2008, CIAT</full> <link>http://srtm.csi.cgiar.org/</link> </provider> </providers> <areas> <area name="Iran"> <geoRect left="48.0337" bottom="29.8960" right="60.4761" top="36.6154"/> <geoRect left="45.2450" bottom="35.7922" right="53.8126" top="38.9187"/> <geoRect left="45.6075" bottom="32.4091" right="48.0570" top="35.8327"/> <geoRect left="52.5746" bottom="26.4373" right="62.9038" top="29.9127"/> <geoRect left="60.4731" bottom="29.8613" right="61.8767" top="31.4985"/> <geoRect left="60.4320" bottom="31.4630" right="60.9466" top="36.6154"/> <geoRect left="47.4205" bottom="30.8911" right="48.0706" top="32.4190"/> <geoRect left="57.0085" bottom="24.9641" right="62.2974" top="26.4565"/> <geoRect left="62.8963" bottom="26.6229" right="63.3307" top="27.2549"/> <geoRect left="60.9157" bottom="34.5901" right="61.3015" top="36.6464"/> <geoRect left="53.7891" bottom="36.5729" right="60.3488" top="37.6781"/> <geoRect left="54.8182" bottom="37.6386" right="58.2282" top="38.2889"/> <geoRect left="46.6111" bottom="38.9000" right="48.3898" top="39.7085"/> <geoRect left="44.0295" bottom="36.4006" right="46.0038" top="39.7794"/> <geoRect left="45.4011" bottom="33.7685" right="45.6497" top="34.6038"/> <geoRect left="50.1860" bottom="27.5226" right="52.6222" top="29.9188"/> </area> <area name="China"> <geoRect left="84.2005" bottom="29.1171" right="124.1865" top="41.5657"/> <geoRect left="85.7494" bottom="41.5630" right="90.6305" top="47.1087"/> <geoRect left="90.6025" bottom="41.5601" right="101.8172" top="42.5667"/> <geoRect left="90.6234" bottom="42.5506" right="95.3195" top="44.2497"/> <geoRect left="80.8031" bottom="30.4401" right="85.7610" top="45.1197"/> <geoRect left="98.7867" bottom="23.3901" right="120.0226" top="29.1184"/> <geoRect left="120.0168" bottom="26.3574" right="122.1214" top="29.1201"/> <geoRect left="112.0222" bottom="41.5652" right="126.5498" top="44.7488"/> <geoRect left="119.9286" bottom="44.7472" right="129.5186" top="49.3447"/> <geoRect left="120.7819" bottom="49.3350" right="125.4870" top="53.0810"/> <geoRect left="126.5408" bottom="43.0083" right="130.9583" top="47.7089"/> <geoRect left="130.9452" bottom="45.3400" right="133.1190" top="47.6509"/> <geoRect left="76.8533" bottom="36.0000" right="80.8040" top="40.9910"/> <geoRect left="116.5004" bottom="48.0400" right="120.7834" top="49.5037"/> <geoRect left="108.0738" bottom="18.1302" right="117.3293" top="23.4047"/> <geoRect left="99.5674" bottom="22.8489" right="104.7658" top="23.4100"/> <geoRect left="85.1978" bottom="28.3256" right="92.9427" top="29.1306"/> <geoRect left="74.5747" bottom="38.5986" right="76.8557" top="40.2635"/> <geoRect left="79.6755" bottom="30.9888" right="80.8057" top="34.1592"/> <geoRect left="82.8615" bottom="45.1121" right="85.7618" top="46.8092"/> <geoRect left="85.7107" bottom="47.1043" right="88.5712" top="48.3877"/> <geoRect left="90.6263" bottom="44.2477" right="93.5556" top="44.9384"/> <geoRect left="106.8269" bottom="21.9867" right="108.0747" top="23.4067"/> <geoRect left="126.5396" bottom="42.0392" right="129.2131" top="43.0312"/> <geoRect left="96.1699" bottom="28.0162" right="97.3297" top="29.1244"/> <geoRect left="98.1610" bottom="27.6988" right="98.7953" top="29.1224"/> <geoRect left="116.2866" bottom="44.7469" right="119.9547" top="46.4130"/> <geoRect left="99.4518" bottom="22.1509" right="101.5251" top="22.8888"/> <geoRect left="106.4521" bottom="41.5609" right="112.0338" top="42.1729"/> <geoRect left="124.1700" bottom="40.8870" right="125.9757" top="41.5679"/> <geoRect left="119.3816" bottom="49.4970" right="120.8089" top="50.6762"/> <geoRect left="125.4225" bottom="49.3316" right="126.9184" top="51.2651"/> <geoRect left="75.1441" bottom="37.1464" right="76.8756" top="38.6352"/> <geoRect left="127.1282" bottom="41.4833" right="128.0580" top="42.0490"/> <geoRect left="133.1031" bottom="45.8638" right="133.6508" top="48.0605"/> <geoRect left="133.6275" bottom="47.4507" right="134.5299" top="48.3165"/>

Page 57: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 57►  API Reference  

<geoRect left="120.8063" bottom="32.3204" right="125.2434" top="36.6148"/> <geoRect left="122.1926" bottom="28.0898" right="129.4044" top="32.4149"/> <geoRect left="120.8675" bottom="25.2971" right="126.5996" top="28.2165"/> <geoRect left="118.0693" bottom="21.1021" right="122.3802" top="25.3132"/> <geoRect left="112.4204" bottom="14.0561" right="119.5878" top="22.5872"/> <geoRect left="119.4778" bottom="19.6497" right="121.0020" top="21.1806"/> <geoRect left="109.6162" bottom="9.7891" right="118.1505" top="15.5257"/> <geoRect left="106.8594" bottom="5.6145" right="115.3392" top="9.8540"/> <geoRect left="108.2902" bottom="4.2167" right="112.5326" top="5.6612"/> <geoRect left="118.0910" bottom="12.6250" right="119.5515" top="14.1308"/> <geoRect left="109.6809" bottom="2.7992" right="111.1337" top="4.2559"/> <geoRect left="115.3165" bottom="7.0220" right="116.7427" top="9.8518"/> <geoRect left="106.8169" bottom="18.2459" right="108.3471" top="19.7338"/> <geoRect left="123.7356" bottom="36.5488" right="125.8812" top="40.6430"/> <geoRect left="107.9469" bottom="19.6980" right="108.3115" top="21.5553"/> <geoRect left="103.9404" bottom="4.1736" right="106.9522" top="7.1033"/> <geoRect left="105.4241" bottom="6.9882" right="106.8956" top="8.5050"/> </area> </areas> <schemes> <scheme name="carnav.day.grey"> <copyright zoomMin="5" zoomMax="20" area="China">NavInfo</copyright> <copyright zoomMin="6" zoomMax="20" area="Iran">THTC</copyright> </scheme> <scheme name="normal.day.grey"> <copyright zoomMin="5" zoomMax="20" area="China">NavInfo</copyright> <copyright zoomMin="6" zoomMax="20" area="Iran">THTC</copyright> </scheme> <scheme name="normal.day.transit"> <copyright zoomMin="5" zoomMax="20" area="China">NavInfo</copyright> <copyright zoomMin="6" zoomMax="20" area="Iran">THTC</copyright> </scheme> <scheme name="normal.day"> <copyright zoomMin="5" zoomMax="20" area="China">NavInfo</copyright> <copyright zoomMin="6" zoomMax="20" area="Iran">THTC</copyright> </scheme> <scheme name="terrain.day"> <copyright zoomMin="5" zoomMax="20" area="China">NavInfo CIAT</copyright> <copyright zoomMin="6" zoomMax="20" area="Iran">THTC CIAT</copyright> <copyright>CIAT</copyright> </scheme> <scheme name="satellite.day"> <copyright>DigitalGlobe</copyright> </scheme> <scheme name="hybrid.day"> <copyright zoomMin="5" zoomMax="20" area="China">NavInfo DigitalGlobe</copyright> <copyright zoomMin="6" zoomMax="20" area="Iran">THTC DigitalGlobe</copyright> <copyright>DigitalGlobe</copyright> </scheme> <scheme name="hybrid.day.mobile"> <copyright zoomMin="5" zoomMax="20" area="China">NavInfo DigitalGlobe</copyright> <copyright zoomMin="6" zoomMax="20" area="Iran">THTC DigitalGlobe</copyright> <copyright>DigitalGlobe</copyright> </scheme> <scheme name="normal.day.grey.mobile"> <copyright zoomMin="5" zoomMax="20" area="China">NavInfo</copyright> <copyright zoomMin="6" zoomMax="20" area="Iran">THTC</copyright> </scheme> <scheme name="normal.day.mobile"> <copyright zoomMin="5" zoomMax="20" area="China">NavInfo</copyright> <copyright zoomMin="6" zoomMax="20" area="Iran">THTC</copyright> </scheme> <scheme name="normal.night.mobile"> <copyright zoomMin="5" zoomMax="20" area="China">NavInfo</copyright> <copyright zoomMin="6" zoomMax="20" area="Iran">THTC</copyright> </scheme> <scheme name="normal.day.transit.mobile"> <copyright zoomMin="5" zoomMax="20" area="China">NavInfo</copyright>

Page 58: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 58►  API Reference  

<copyright zoomMin="6" zoomMax="20" area="Iran">THTC</copyright> </scheme> <scheme name="terrain.day.mobile"> <copyright zoomMin="5" zoomMax="20" area="China">NavInfo CIAT</copyright> <copyright zoomMin="6" zoomMax="20" area="Iran">THTC CIAT</copyright> <copyright>CIAT</copyright> </scheme> <scheme name="normal.day.custom"> <copyright zoomMin="5" zoomMax="20" area="China">NavInfo</copyright> <copyright zoomMin="6" zoomMax="20" area="Iran">THTC</copyright> </scheme> <scheme name="pedestrian.day"> <copyright zoomMin="5" zoomMax="20" area="China">NavInfo</copyright> <copyright zoomMin="6" zoomMax="20" area="Iran">THTC</copyright> </scheme> <scheme name="predestrian.night"> <copyright zoomMin="5" zoomMax="20" area="China">NavInfo</copyright> <copyright zoomMin="6" zoomMax="20" area="Iran">THTC</copyright> </scheme> </schemes></copyrights>

This XML response contains the following elements:

Table 7: Response elements

Element Description

provider The map provider name with the following description elements:

text: copyright text to display after the copyright symbol on the map.

full: verbose copyright text of the label to display by mouse over label or info menu entry.

link: link to the map provider website.

icon: logo of the map provider that can be optionally added to the map. Specified by the URL(src), dimensions (width, height) and the mimetype.

area The name, size and shape of a geographical area with a particular copyright. The area is specified by

geoRect: The bounding boxes (bottom - latitude, left - longitude, top - latitude, right -longitude).

scheme The view schemes and corresponding copyrights are defined here.

copyright: Map provider or list of providers for a particular view scheme. Copyrights are definedby the given geographical area and the relevant zoom level range (zoomMin, zoomMax). The defaultcopyright is the one that has no geographical restriction and is therefore valid for all other areas.

All relevant copyrights of the map view must be displayed. Different areas may contribute byoverriding or adding to the copyright text depending on whether the view is contained completelywithin one of these areas or overlaps partially one or more of them. If there are parts of severalareas in the view, check the composite list of providers to avoiding duplicate entries with thedifferent copyright data.

For example, using a hybrid.day view scheme, the default copyright will be shown and then all therelevant ones that are inside of the area of the bounding box currently being displayed.

Page 59: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 59►  API Reference  

Copyright Request Response in JSON

In the example below, the request for copyright information does not indicate the output format.

http://1.base.maps.cit.api.here.com/maptile/2.1/copyright/newest?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

The default output format is JSON and this is the format delivered by the response to the above

request:

{ "satellite": [ { "minLevel": 0, "maxLevel": 20, "label": "2010 DigitalGlobe", "alt": "copyright2010DigitalGlobe Inc." } ], "normal": [ { "minLevel": 0, "maxlevel": 20, "label": "2010NAVTEQ", "alt": "copyright2010NAVTEQAllRightsReserved" }, { "minLevel": 5, "maxlevel": 20, "label": "2010NavInfo", "alt": "copyright2010NavInfoCoLtd.AllRightsReserved", "boxes": [ [ 29.1171, 84.2005, 41.5657, 124.1865 ], [ 41.5630, 85.7494, 47.1087, 90.6305 ], ... ] }, { "minLevel": 6, "maxLevel": 20, "label": "2010THTC", "alt": "copyright2010IranMapsprovidedbyTHTC", "boxes": [ [ 29.8960, 48.0337, 36.6154, 60.4761 ], [ 35.7922, 45.2450, 38.9187,

Page 60: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 60►  API Reference  

53.8126 ], ... ] } ], "hybrid": [ { "minLevel": 0, "maxLevel": 20, "label": "2010NAVTEQ&DigitalGlobe", "alt": "copyright2010NAVTEQ&DigitalGlobeAllRightsReserved" }, { "minLevel": 5, "maxLevel": 20, "label": "2010NavInfo&DigitalGlobe", "alt": "copyright2010NavInfoCoLtd.&DigitalGlobeAllRightsReserved", "boxes": [ [ 29.1171, 84.2005, 41.5657, 124.1865 ], ... ] }, { "minLevel": 6, "maxLevel": 20, "label": "2010THTC&DigitalGlobe", "alt": "copyright2010IranMapsprovidedbyTHTC&DigitalGlobe", "boxes": [ [ 29.8960, 48.0337, 36.6154, 60.4761 ], ... ] } ], "terrain": [ { "minLevel": 0, "maxLevel": 20, "label": "2010NAVTEQ&SRTMV4, 2008,CIAT", "alt": "copyright2010NAVTEQAllRightsReserved&SRTMV4, copyright2008, CIAT", }, { "minLevel": 5, "maxLevel": 20, "label": "2010NavInfo&SRTMV4, 2008, CIAT", "alt": "copyright2010NavInfoAllRightsReserved&SRTMV4,copyright2008, CIAT", "boxes": [ [ 29.1171, 84.2005, 41.5657, 124.1865 ], [ 41.563, 85.7494, 47.1087, 90.6305 ], ...

Page 61: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 61►  API Reference  

] }, { "minLevel": 6, "maxLevel": 20, "label": "2010THTC&SRTMV4, 2008, CIAT", "alt": "copyright2010IranMapsprovidedbyTHTC&SRTMV4, copyright2008, CIAT", "boxes": [ [ 29.896, 48.0337, 36.6154, 60.4761 ], [ 35.7922, 45.245, 38.9187, 53.8126 ], ... ] } ]}

The copyright information is defined for each view scheme and contains the following elements:

Table 8: Copyright information elements (response)

Element Description

minLevel Minimum zoom level for the specified copyright label.

maxLevel Maximum zoom level for the specified copyright label.

label Copyright text to display after the copyright symbol on the map.

alt Verbose copyright text of the label to display by mouse over label or info menu entry.

boxes The bounding boxes define areas where specific copyrights are valid. A bounding box is defined bybottom (latitude), left (longitude) and top (latitude), right (longitude).

 

The default copyright has no boxes element and covers all other areas.

The bounding boxes may override or add to the copyright label depending on whether the map viewis contained completely within one of the bounding boxes or overlaps partially one or more of them.

VersionThis version resource handles requests for software version details.

The following URL shows the format of a version request and the table below explains each

parameter.

http://{1-4}.base.maps.api.here.com/maptile/2.1/version?app_id=DemoAppId01082013GAL

Page 62: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 62►  API Reference  

&app_code=AJKnXv84fjrb0KIHawS0Tg&{param}={value}

Note: Metadata requests retrieve information specific to the base URLs they target. Thisinformation cannot be used in subsequent requests that use other base URLs. For example, toobtain a traffic map version, use metadata from the response to a request addressed to theTraffic Tiles base URL, but for a version of aerial map, use metadata from the response to arequest addressed to Aerial Tiles base URL.

Table 9: Version request parameters

Parameter Type Description

app_code String (required) A URL-safe encoded string obtained during the application registration.

See Acquiring Credentials on page 12 for information on getting

credentials.

Note: Usage of token is accepted although is deprecated

app_id String (required) A URL-safe encoded string obtained during the application registration.

See Acquiring Credentials on page 12 for information on getting

credentials.

Example

The following example shows a request addressed to the version resource.

http://{1-4}.base.maps.api.here.com/maptile/2.1/version?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

The response contains information as shown in this example.

MRS: 2.1.32.1MOS: 2.0.1.3448383637

Note that the first element is the version of the Map Tile API, while the second is the version of the

underlying map rendering system.

HTTP Status CodesMap Tile API supports the standard HTTP status codes detailed in the table below.

Page 63: Map Tile API - Heredocumentation.developer.here.com/pdf/map_tile_nlp/2.1.32.1/Map Tile API v2.1.32.1...Map Tile API Developer's Guide 2 ... free and Nokia does not warrant or make

Map Tile API Developer's Guide 63►  API Reference  

Table 10: HTTP status codes

Error code Description

200 OK Indicates success, but may also be returned when an invalid resource name and/or an invalid

parameter combination has been used in the request.

400 Bad request Indicates an invalid parameter value in the request, for example zoom out of range.

401 Unauthorized Indicates authentication failure.

403 Forbidden Indicates incorrect app_code or app_id in the request. See Acquiring Credentials on page

12 for more information.

404 Not found Indicates that the resource was not found.

500 Internal error Indicates a server configuration issue.

503 Service Unavailable Indicates that the service is temporarily unavailable due to system overload or maintenance.