Additional Data
Public Preview Notice
Important notes:
- This TomTom Orbis Maps Search API document collection is in Public Preview. Go to the Public Preview - what is it? page to see what this means.
- This API is powered by TomTom Orbis Maps.
- See the TomTom Orbis Maps documentation for more information.
Purpose
The Geometries Data Provider returns sets of coordinates that represent the outline of a city, country, or land area. The service supports batch requests of up to 20 identifiers.
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
For ease of viewing and identification:
- 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.
Important note: Either the apiVersion
parameter or TomTom-Api-Version
header needs to be present.
https://{baseURL}/maps/orbis/places/additionalData.{ext}?key={Your_API_Key}&apiVersion={apiVersion}&geometries={geometryIds}&geometriesZoom={zoomLevel}
https://api.tomtom.com/maps/orbis/places/additionalData.json?key={Your_API_Key}&apiVersion=1&geometries=00004631-3400-3c00-0000-0000673c4d2e,00004631-3400-3c00-0000-0000673c42fe
curl 'https://api.tomtom.com/maps/orbis/places/additionalData.json?key={Your_API_Key}&apiVersion=1&geometries=00004631-3400-3c00-0000-0000673c4d2e,00004631-3400-3c00-0000-0000673c42fe'
Request parameters
The following table describes 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.
Required parameters | Description |
---|---|
| Base URL for calling the API. |
| The response format of the API request. The valid response
format is JSON. |
| Comma-separated list of geometry Ids, previously retrieved
from a Search request. |
| An API Key valid for the requested service. |
Optional parameters | Description |
---|---|
| Service version. If the |
| When the |
Table 1: Precision per zoom level
Value | Precision | Area |
---|---|---|
0 | 156 km | Whole world |
1 | 78 km | - |
2 | 39 km | - |
3 | 19 km | - |
4 | 10 km | Continent |
5 | 5 km | - |
6 | 2.5 km | - |
7 | 1.2 km | - |
8 | 600 m | - |
9 | 300 m | Â |
10 | 150 m | Country |
11 | 75 m | - |
12 | 40 m | - |
13 | 20 m | - |
14 | 10 m | Village or town |
15 | 5 m | - |
16 | 2.5 m | - |
17 | 1.2 m | Small road |
18 | 0.6 m | - |
19 | 0.3 m | - |
20 | 0.15 m | - |
21 | 0.075 m | - |
22 | 0.0375 m | - |
Request headers
Optional headers | Description |
---|---|
TomTom-Api-Version | Service version. If the |
If-None-Match | Provides the entity tag (ETag)
of the requested resource as last received by the client. Allows
efficient updates of cached information with a minimum amount of
transaction overhead. The service can respond with a |
Tracking-ID | Specifies an identifier for the request. It can be used to trace a call.
Value: An |
Response data
Response body
The response will be a JSON object with the following structure:
1{2 "additionalData": [3 {4 "providerID": "00004145-3100-3c00-1110-000023c34641",5 "error": "Requested geometry not found"6 },7 {8 "providerID": "00004145-3100-3c00-0000-000023c34645",9 "geometryData": {10 "type": "FeatureCollection",11 "features": [12 {13 "type": "Feature",14 "properties": {},15 "geometry": {16 "type": "Polygon",17 "coordinates": [18 [19 [-58.618436, -34.546888],20 [-58.618162, -34.547092],21 [-58.617562, -34.547538],22 [-58.616396, -34.548406],23 [-58.615583, -34.549011],24 [-58.612135, -34.5516584],25 [-58.6114201, -34.5526017],26 [-58.6108784, -34.5530107],27 [-58.6105212, -34.5532873],28 [-58.6098298, -34.5537771],29 [-58.609559, -34.553973],30 [-58.608954, -34.5544455],31 [-58.6086543, -34.5546817],32 [-58.607888, -34.5552463],33 [-58.6077382, -34.5553731],34 [-58.6068163, -34.5561048],35 [-58.6060671, -34.5566521],36 [-58.6053463, -34.5571967],37 [-58.6045748, -34.5577815],38 [-58.6039179, -34.5582827],39 [-58.6037623, -34.5584037],40 [-58.6031631, -34.558905],41 [-58.6028692, -34.5591125],42 [-58.618436, -34.546888]43 ]44 ]45 },46 "id": "00004145-3100-3c00-0000-000023c34645"47 }48 ]49 }50 }51 ]52}
Response fields
The following table describes all of the fields that can appear in a response. Fields are listed by the response section they belong to and in the order that they appear in the response.
Primary fields | |
---|---|
Field | Description |
| Root array element for actual additional data. |
item object | |
Field | Description |
| ID of the returned entity. |
| Reason for the failure to obtain data for this provider. |
| Geometry data. Only present if an "error" is not present. |
Response codes
The following table contains response codes signifying successful and failed requests to an API server.
Code | Meaning & possible causes |
---|---|
200 | OK: If the given geometry was found, the body of the response will contain the data. Otherwise, the response will have the applicable error message. |
304 | Not Modified: The requested content did not change since the last request, as indicated by the value of the If-None-Match HTTP header field. |
400 | Bad request: One or more parameters (i.e., geometries, ext, geometriesZoom) were incorrectly specified or are out of range. |
403 | Forbidden: Possible causes include:
|
404 | Not Found: The requested resource could not be found, but it may be available again in the future. |
405 | Method Not Allowed: The client used a HTTP method other than GET. |
429 | Too Many Requests: The API Key is over QPS (Queries per second). |
5xx | Server Error: The service was unable to process your request. Contact support to resolve the issue. |
Response headers
The following table contains HTTP response headers of particular interest to Additional Data service clients.
Header | Description |
---|---|
Access-Control-Allow-Origin | Ensures that clients implementing the CORS security model are able to
access the response from this service. |
Access-Control-Expose-Headers | The Additional Data service whitelists Response headers that browsers
are allowed to access. |
Content-Encoding | The Additional Data service supports HTTP compression,
if requested by the client. |
Content-Type | Indicates the format of the response, as chosen by the client. |
ETag | Entity-tag of the served resource. Can be used by the client in the
|
Tracking-ID | An identifier for the request. If the
Tracking-ID header was specified, it
is replicated in the response. Otherwise, it is generated automatically
by the service. It is only meant to be used for support and does not
involve tracking of you or your users in any form. |
Error response
1{2 "message": "Missing parameter 'parameterName'",3 "detailedError": {4 "code": "MissingParameter",5 "message": "Missing required parameter 'parameterName'."6 },7 "httpStatusCode": "400"8}
Error response fields
Primary fields | |
---|---|
Field | Description |
| A human-readable description of the error. |
| Detailed information about the error. |
detailedError object | |
Field | Description |
| One of a server-defined set of error codes. |
| A human-readable description of the error code. It is intended as an aid to developers and is not suitable for exposure to end users. |