Map Styles

Service version: 2
Last edit: 2024.09.19

Public Preview Notice

This API is in Public Preview. Go to the Public Preview - what is it? page to see what this means.

Purpose

The Maps API Resource service delivers resources required to display vector maps. The service consists of the:

  • Metadata method: This retrieves a list of resources of a selected type.
  • Resource method: This retrieves a selected resource.
  • Merged style method: This retrieves a merged style depending on the passed params.
  • Merged sprite method: This retrieves a merged sprite depending on the passed params.

You can find the structure of the map style in the MapLibre Style Specification documentation.

Request data

Metadata method

HTTPS method: GET

Please see the following Request parameters section with the required and optional parameters tables for these values. The generic URL format is as follows.

URL format

get
Request URL
https://{baseURL}/map/{versionNumber}/{resourceType}/{resourceVersion}/{resourceVariant}/metadata.{format}?key={Your_API_Key}

Examples

get
Example request URLs
1https://api.tomtom.com/map/1/style/metadata.json?key={Your_API_Key}
2
3https://api.tomtom.com/map/1/style/22.2.1-9/2/metadata.json?key={Your_API_Key}
4
5https://api.tomtom.com/map/1/style/22.*/2/metadata.json?key={Your_API_Key}
6
7https://api.tomtom.com/map/1/sprite/22.2.1-9/2/metadata.json?key={Your_API_Key}
8
9https://api.tomtom.com/map/1/glyph/22.2.1-9/metadata.json?key={Your_API_Key}

curl command format

get
Request curl command
curl 'https://api.tomtom.com/map/1/style/22.2.1-9/2/metadata.json?key={Your_API_Key}'

Request parameters (Metadata method)

The following table describes the parameters that can be used in a request.

  • Required parameters must be used or the call will fail.
  • Parameters and values are case-sensitive.
  • Optional parameters may be used.

Required parameters

Description

baseURL


string

Base URL for calling TomTom services.


Value: api.tomtom.com

versionNumber


string

The version of the service to call.


Value: The current version is 1.

resourceType


string

The type of the requested resource.


Values:

  • style

  • sprite

  • glyph

format


string

The requested response format.


Values:

  • xml

  • json

  • jsonp

key


string

The authorization key for access to the API.


Value: Your valid API Key.

Optional parameters

Description

resourceVersion


string

Version of the requested resource. If the version string contains a wildcard, the latest matching version of the resource will be provided.


Values:

  • A version.
  • A partial version ending with a wildcard character, e.g., *, 22.*, 22.2.1-*.

resourceVariant


string

Variant of the requested resource. Can only be used when resourceVersion is provided.


Value: The variant name, e.g., 2

Resource method

HTTPS method: GET

Please see the following Request parameters section with the required and optional parameters tables for these values. The generic URL format is as follows.

URL format

get
Request URL
https://{baseURL}/map/{versionNumber}/{resourceType}/{resourceVersion}/{resourceVariant}/{resourceName}?key={Your_API_Key}

Examples

get
Example request URL
1https://api.tomtom.com/map/1/style/22.*/2/basic_street-light.json?key={Your_API_Key}
2
3https://api.tomtom.com/map/1/style/22.2.1-9/2/basic_street-light.json?key={Your_API_Key}
4
5https://api.tomtom.com/map/1/sprite/22.2.1-9/2/basic_street-light/sprite.png?key={Your_API_Key}

curl command format

get
Request curl command
curl 'https://api.tomtom.com/map/1/style/22.2.1-9/2/basic_street-light.json?key={Your_API_Key}'

Request parameters (Resource method)

The following table describes the parameters that can be used in a request.

  • Required parameters must be used or the call will fail.
  • Parameters and values are case-sensitive.
  • Optional parameters may be used.

Required parameters

Description

baseURL


string

Base URL for calling TomTom services


Value: api.tomtom.com

versionNumber


string

The version of the service to call.


Value: The current version is 1.

resourceType


string

The type of the requested resource.


Values:

  • style

  • sprite

  • glyph

resourceVersion


string

The version of the requested resource. If the version string contains a wildcard, the latest matching version of the resource will be provided. Available versions can be listed using the Metadata method.


Values:

  • A version.
  • A partial version ending with a wildcard character, e.g., *, 22.*, 22.2.1-*.

resourceName


string

The requested resource name (with an extension if applicable). Available resources can be listed using the Metadata method.


Value: A resource name.

key


string

Authorization key for access to the API.


Value: Your valid API Key.

Optional parameters

Description

resourceVariant


string

The variant of the requested resource. Available variants can be listed using the Metadata method.


Value: For example, 2

Merged style method

HTTPS method: GET

  • Constants and parameters enclosed in curly brackets { } must be replaced with their values.
  • Please see the following Request parameters section with the required and optional parameters tables for their values. The generic request format is as follows.

URL format

get
Request URL
https://{baseURL}/style/{versionNumber}/style/{resourceVersion}?key={Your_API_Key}&map={map_style}&traffic_incidents={traffic_incident_style}&traffic_flow={traffic_flow_style}&poi={poi_style}&restrictions={restrictions_style}&hillshade={hillshade_style}

Examples

get
Example request URLs
1https://api.tomtom.com/style/1/style/22.2.1-9?key={Your_API_Key}&map=2/basic_street-light&traffic_incidents=2/incidents_light&traffic_flow=2/flow_relative-light&poi=2/poi_light
2
3https://api.tomtom.com/style/1/style/22.2.1-9?key={Your_API_Key}&map=2/basic_street-light&traffic_incidents=2/incidents_light
4
5https://api.tomtom.com/style/1/style/22.2.1-9?key={Your_API_Key}&traffic_incidents=2/incidents_light&traffic_flow=2/flow_relative-light
6
7https://api.tomtom.com/style/1/style/24.2.0-3?key={Your_API_Key}&map=2/basic_street-light&hillshade=2/hillshade_light

curl command format

get
Request curl command
curl 'https://api.tomtom.com/style/1/style/22.2.1-9?key={Your_API_Key}&traffic_incidents=2/incidents_light&traffic_flow=2/flow_relative-light'

Request parameters (Merged style method)

The following table describes the parameters that can be used in a request.

  • Required parameters must be used or the call will fail.
  • Parameters and values are case-sensitive.
  • At least one optional parameter; map , traffic_incidents , traffic_flow, poi, restrictions, or hillshade must be used or the call will fail.

Required parameters

Description

baseURL


string

Base URL for calling TomTom services.


Value: api.tomtom.com

versionNumber


string

The version of the service to call.


Value: The current version is 1.

resourceVersion


string

Version of the requested resource. Must be newer than or equal to 22.2.1-9. If the version string contains a wildcard, the latest matching version of the resource will be provided.


Values:

  • A version.
  • A partial version ending with a wildcard character, e.g., *, 22.*, 22.2.1-*.

key


string

The authorization key for access to the API.


Value: Your valid API Key.

Optional parameters

Description

map


string

Map style name (including variant if applicable) to be used for the merged style.


Values: See Available map styles.

traffic_incidents


string

Traffic incidents style name (including variant if applicable) to be used for the merged style.


Values: See Available incidents styles.

traffic_flow


string

Traffic flow style name (including variant if applicable) to be used for the merged style.


Values: See Available flow styles.

poi


string

POI style name (including variant if applicable) to be used for the merged style.


Values: See Available POI styles.

restrictions


string

Restrictions style name (including a variant if applicable) to be used for the merged style.


Values: See Available restrictions styles.

hillshade


string

Hillshade style name (including variant if applicable) to be used for the merged style.


Values: See Available Hillshade styles.

Available Map styles

Name (and variant if applicable)

Preview

Available since

Available until

2/basic_street-light2/basic_street-light22.2.1-9 -
2/basic_street-dark2/basic_street-dark22.2.1-9 -
2/basic_street-light-driving2/basic_street-light-driving22.2.1-9 -
2/basic_street-dark-driving2/basic_street-dark-driving22.2.1-9 -
2/basic_mono-light2/basic_mono-light22.2.1-16 -
2/basic_mono-dark2/basic_mono-dark24.1.0-15 -
2/basic_street-satellite2/basic_street-satellite22.2.1-9 -
2/hybrid_street-light2/hybrid_street-light22.2.1-9 -
2/hybrid_street-dark2/hybrid_street-dark22.2.1-9 -
2/hybrid_street-light-driving2/hybrid_street-light-driving22.2.1-9 -
2/hybrid_street-dark-driving2/hybrid_street-dark-driving22.2.1-9 -
2/hybrid_street-satellite2/hybrid_street-satellite22.2.1-9 -
2/labels_street-light2/labels_street-light22.2.1-9 -
2/labels_street-dark2/labels_street-dark22.2.1-9 -
2/labels_street-light-driving2/labels_street-light-driving22.2.1-9 -
2/labels_street-dark-driving2/labels_street-dark-driving22.2.1-9 -
2/labels_street-satellite2/labels_street-satellite22.2.1-9 -
basic_mainbasic_main20.3.2-3 -
basic_nightbasic_night20.3.2-3 -
basic_main-litebasic_main-lite20.3.2-3 -
basic_night-litebasic_night-lite20.3.2-3 -
hybrid_mainhybrid_main20.3.2-3 -
hybrid_nighthybrid_night20.3.2-3 -
hybrid_main-litehybrid_main-lite20.3.2-3 -
hybrid_night-litehybrid_night-lite20.3.2-3 -
labels_mainlabels_main20.3.2-3 -
labels_nightlabels_night20.3.2-3 -
labels_main-litelabels_main-lite20.3.2-3 -
labels_night-litelabels_night-lite20.3.2-3 -

Available Incidents styles

Name (and variant if applicable)

Preview

Available since

Available until

2/incidents_light2/incidents_light22.2.1-9 -
2/incidents_dark2/incidents_dark22.2.1-9 -
incidents_dayincidents_day20.3.2-3 -
incidents_darkincidents_dark20.3.2-3 -
incidents_nightincidents_night20.3.2-3 -
incidents_s0incidents_s020.3.2-3 -
incidents_s0-darkincidents_s0-dark20.3.2-3 -
incidents_s1incidents_s120.3.2-3 -
incidents_s2incidents_s220.3.2-3 -
incidents_s3incidents_s320.3.2-3 -

Available Flow styles

Name (and variant if applicable)

Preview

Available since

Available until

2/flow_relative-light2/flow_relative-light22.2.1-9 -
2/flow_relative-dark2/flow_relative-dark22.2.1-9 -
flow_absoluteflow_absolute20.3.2-3 -
flow_reduced-sensitivityflow_reduced-sensitivity20.3.2-3 -
flow_relative-delayflow_relative-delay20.3.2-3 -
flow_relative0flow_relative020.3.2-3 -
flow_relative0-darkflow_relative0-dark20.3.2-3 -

Available POI styles

Name (and variant if applicable)

Preview

Available since

Available until

2/poi_light2/poi_light22.2.1-9 -
2/poi_dark2/poi_dark22.2.1-9 -
2/poi_satellite2/poi_satellite22.2.1-9 -
2/poi_dynamic-light2/poi_dynamic-light22.2.1-9 -
2/poi_dynamic-dark2/poi_dynamic-dark22.2.1-9 -
2/poi_dynamic-light2/poi_dynamic-light22.2.1-9 -
2/poi_dynamic-mono-dark2/poi_dynamic-mono-dark24.1.0-15 -
2/poi_dynamic-mono-light2/poi_dynamic-mono-light22.2.1-16 -
2/poi_mono-dark2/poi_mono-dark24.1.0-15 -
2/poi_mono-light2/poi_mono-light22.2.1-16 -
poi_mainpoi_main20.3.4-6 -
poi_dynamicpoi_dynamic20.4.5-8 -

Available Restrictions styles

Name (and variant if applicable)

Preview

Available since

Available until

2/restrictions_light2/restrictions_light24.1.0-16 -
2/restrictions_dark2/restrictions_dark24.1.0-16 -

Available Hillshade styles

Name (and variant if applicable)

Preview

Available since

Available until

2/hillshade_dark2/hillshade_dark24.2.2-8 -
2/hillshade_light2/hillshade_light24.2.2-8 -
2/hillshade_mono-dark2/hillshade_mono-dark24.2.2-8 -
2/hillshade_mono-light2/hillshade_mono-light24.2.2-8 -
2/hillshade_satellite2/hillshade_satellite24.2.2-8 -

Merged sprite method

HTTPS method: GET

Please see the following Request parameters section with the required and optional parameters tables for these values. The generic URL format is as follows.

URL format

get
Request URL
https://{baseURL}/style/{versionNumber}/sprite/{resourceVersion}/{type}?key={Your_API_Key}&map={map_style}&traffic_incidents={traffic_incident_style}&traffic_flow={traffic_flow_style}&poi={poi_style}&restrictions={restrictions_style}&hillshade={hillshade_style}

Examples

get
Example request URL
1https://api.tomtom.com/style/1/sprite/22.2.1-9/sprite.png?key={Your_API_Key}&map=2/basic_street-light&traffic_incidents=2/incidents_light&traffic_flow=2/flow_relative-light&poi=2/poi_light
2
3https://api.tomtom.com/style/1/sprite/22.2.1-9/sprite@2x.json?key={Your_API_Key}&map=2/basic_street-light&traffic_incidents=2/incidents_light
4
5https://api.tomtom.com/style/1/sprite/22.2.1-9/sprite@2x.png?key={Your_API_Key}&traffic_incidents=2/incidents_light&traffic_flow=2/flow_relative-light
6
7https://api.tomtom.com/style/1/sprite/24.2.0-3/sprite@2x.png?key={Your_API_Key}&map=2/basic_street-light&hillshade=2/hillshade_dem

curl command format

get
Request curl command
curl 'https://api.tomtom.com/style/1/sprite/22.2.1-9/sprite.json?key={Your_API_Key}&traffic_incidents=2/incidents_light&traffic_flow=2/flow_relative-light'

Request parameters (Merged sprite method)

The following table describes the parameters that can be used in a request.

  • Required parameters must be used or the call will fail.
  • Parameters and values are case-sensitive.
  • At least one optional parameter; map , traffic_incidents , traffic_flow or poi must be used or the call will fail.

Required parameters

Description

baseURL


string

Base URL for calling TomTom services.


Value: api.tomtom.com

versionNumber


string

The version of the service to call.


Value: The current version is 1.

resourceVersion


string

Version of the requested resource. Must be newer than or equal to 22.2.1-9. If the version string contains a wildcard, the latest matching version of the resource will be provided.


Values:

  • A version.
  • A partial version ending with a wildcard character, e.g., *, 22.*, 22.2.1-*.

type


string

The requested type of data.


Values:

  • sprite.png

  • sprite@2x.png

  • sprite.json

  • sprite@2x.json

key


string

The authorization key for access to the API.


Value: Your valid API Key.

Optional parameters

Description

map


string

Map style name to be used for the merged sprite.


Values: See available map styles.

traffic_incidents


string

Traffic incidents style name to be used for the merged sprite.


Values: See available incidents styles.

traffic_flow


string

Traffic flow style name to be used for the merged sprite.


Values: See available flow styles.

poi


string

POI style name to be used for the merged sprite.


Values: See available poi styles.

restrictions


string

Restrictions style name to be used for the merged sprite.


Values: See available restrictions styles.

hillshade


string

Hillshade style name (including variant if applicable) to be used for the merged style.


Values: See Available Hillshade styles.