WMTS
Purpose
The Web Map Tile Service (WMTS) is the Open Geospatial Consortium (OGC)'s standard for delivering rectangular map tiles via RESTful web services. It consists of two key service calls: GetCapabilities and GetTile.
GetCapabilities
The "GetCapabilities" call documented here implements the 1.0.0 version of the WMTS standard. It returns an XML structure containing metadata on both the company hosting the service (in this case, TomTom) and the various layers that the service offers. That metadata is sufficient to allow calling systems to construct calls to Tomtom's Map Display API Raster Tile endpoint that retrieves individual raster map tiles for a given geographic extent, zoom level, and layer type.
GetTile
Because the TomTom WMTS services follow the OGC WMTS specification, it is then easy to use these services via third party tools such as Esri's ArcGIS Online. While less flexible than the WMS API, WMTS "GetTile" calls are tailored for speed. They retrieve single map tiles and do not aggregate tiles in order to deliver a single composited map image.
Run this endpoint
You can easily run this and other endpoints. Go to the TomTom API Explorer page and follow the directions.
Request data
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
https://{baseURL}/map/{versionNumber}/wmts/apiKey={Your_API_Key}/{wmtsVersion}/WMTSCapabilities.xml
Example
https://api.tomtom.com/map/1/wmts/apiKey={Your_API_Key}/1.0.0/WMTSCapabilities.xml
curl command format
curl 'https://api.tomtom.com/map/1/wmts/apiKey={Your_API_Key}/1.0.0/WMTSCapabilities.xml'
Request parameters
The following table describes all the parameters that can be used in a request.
- Required parameters must be used or the call will fail.
- Optional parameters may be used.
- If there is a default value that will be assumed when an optional parameter is not used, it is shown in the table.
Note: There are no optional parameters in this endpoint.
Required parameters | Description |
---|---|
string | The base URL for calling TomTom services. Value: |
string | The version of the service to call. Value: The current version is |
string | The authorization key for access to the API. Value: Your valid API Key. |
float | The version of the WMTS service. Value: |
Request headers
The following data table lists HTTP request headers of particular interest to clients of the Maps WMTS API endpoint. Note: There are no required headers in this endpoint.
Optional headers | Description |
---|---|
Tracking-Id | Specifies an identifier for the request. It can be used to trace a call.
The value must match the regular expression
Value: |
Response data
A full schema (XSD) for the response is available from openGIS. The following XML code block is a partial example of a successful response. For the meanings and use of the different elements, please refer to the schema.
Response body (XML)
XML response body
1<?xml version="1.0" encoding="UTF-8"?>2<Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd"version="1.0.0">3 <ows:ServiceIdentification>4 <ows:Title>TomTom Web Map Tile Service</ows:Title>5 <ows:ServiceType>OGC WMTS</ows:ServiceType>6 <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>7 <ows:Fees>none</ows:Fees>8 <ows:AccessConstraints>none</ows:AccessConstraints>9 </ows:ServiceIdentification>1011 <ows:ServiceProvider>12 <ows:ProviderName>TomTom International B.V.</ows:ProviderName>13 <ows:ProviderSite xlink:href="https://www.tomtom.com"/>14 <ows:ServiceContact>15 (...contact information for support of the service...)16 </ows:ServiceContact>17 </ows:ServiceProvider>1819 <ows:OperationsMetadata>20 <ows:Operation name="GetCapabilities">21 (...metadata on the GetCapabilities call)22 </ows:Operation>23 <ows:Operation name="GetTile">24 (...metadata on the GetTile call)25 </ows:Operation>26 </ows:OperationsMetadata>2728 <Contents>29 <!-- Basic Map -->30 <Layer>31 <ows:Title>TomTom Map — Standard</ows:Title>32 <ows:WGS84BoundingBox crs="urn:ogc:def:crs:OGC:2:84">33 <ows:LowerCorner>-180 -85</ows:LowerCorner>34 <ows:UpperCorner>180 85</ows:UpperCorner>35 </ows:WGS84BoundingBox>36 <ows:Identifier>ttms</ows:Identifier>37 <Style isDefault="true">38 <ows:Identifier>map/1/tile/basic/main</ows:Identifier>39 </Style>40 <Format>image/png</Format>41 <TileMatrixSetLink>42 <TileMatrixSet>google900913</TileMatrixSet>43 </TileMatrixSetLink>44 <ResourceURL format="image/png" template="https://a.api.tomtom.com/{Style}/{TileMatrix}/{TileCol}/{TileRow}.png?key=apiKey" resourceType="tile"/>45 <ResourceURL format="image/png" template="https://b.api.tomtom.com/{Style}/{TileMatrix}/{TileCol}/{TileRow}.png?key=apiKey" resourceType="tile"/>46 <ResourceURL format="image/png" template="https://c.api.tomtom.com/{Style}/{TileMatrix}/{TileCol}/{TileRow}.png?key=apiKey" resourceType="tile"/>47 <ResourceURL format="image/png" template="https://d.api.tomtom.com/{Style}/{TileMatrix}/{TileCol}/{TileRow}.png?key=apiKey" resourceType="tile"/>48 </Layer>49 <Layer>50 (...metadata on additional layers...)51 <Layer>5253 <TileMatrixSet>54 <ows:Identifier>google900913</ows:Identifier>55 <ows:BoundingBox crs="urn:ogc:def:crs:EPSG:6.18:3:3857">56 <ows:LowerCorner>20037508.3428 -20037508.3428</ows:LowerCorner>57 <ows:UpperCorner>-20037508.3428 20037508.3428</ows:UpperCorner>58 </ows:BoundingBox>59 <ows:SupportedCRS>urn:ogc:def:crs:EPSG:6.18:3:3857</ows:SupportedCRS>60 <WellKnownScaleSet>urn:ogc:def:wkss:OGC:1.0:vGoogleMapsCompatible</WellKnownScaleSet>61 <TileMatrix>62 <ows:Identifier>0</ows:Identifier>63 <ScaleDenominator>559082264.029</ScaleDenominator>64 <TopLeftCorner>-20037508.3428 20037508.3428</TopLeftCorner>65 <TileWidth>256</TileWidth>66 <TileHeight>256</TileHeight>67 <MatrixWidth>1</MatrixWidth>68 <MatrixHeight>1</MatrixHeight>69 </TileMatrix>70 (...metadata on further matrixes...)71 </TileMatrixSet>72 </Contents>7374 <ServiceMetadataURL xlink:href="https://api.tomtom.com/map/1/wmts/apiKey/1.0.0/GetCapabilities.xml"/>75</Capabilities>
Error response
The Map Display API WMTS service for an invalid request returns a response body in plain text or JSON format. The plain text format is returned by default. To have an error response returned in JSON format, application/json
has to be specified in the Accept HTTP request header.
Plain text format
Malformed syntax
Error response field structure
Field | Description |
---|---|
object | Main object of the error response. |
string | One of a server-defined set of error codes. |
string | A human-readable description of the error code. |
1{2 "detailedError": {3 "code": "BAD_REQUEST",4 "message": "Malformed syntax"5 }6}
Response codes
Code | Meaning & possible causes |
---|---|
| OK |
| Bad request : Probably malformed syntax. |
| Unauthorized : The supplied API Key is not valid for this request. |
| Too Many Requests : Too many requests were sent in a given amount of time for the supplied API Key. |
| Internal Server Error : There is a problem with the TomTom WMTS service. |
Response headers
The following table lists HTTP response headers of particular interest to clients of the Maps WMTS API endpoint.
Header | Description |
---|---|
The Maps WMTS API allows cross-origin resource sharing (CORS). Value: | |
Contains directives for a caching mechanism. Values: | |
Contains information about the size of the Response body. Value: | |
Indicates the media type of the resource returned. Values: | |
Contains the date and time at which the message was originated. Value: | |
Tracking-Id | An identifier for the request. If the
Tracking-Id header was specified in
the request, it is replicated in the response. Otherwise, it is
generated automatically by the service. For details check
RFC 4122. |