Points of Interest Search
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
If your search use case only requires POI results, you may use the Points of Interest endpoint for searching. This endpoint will only return POI results.
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 methods: GET
HEAD
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 the TomTom-Api-Version
header needs to be present.
https://{baseURL}/maps/orbis/places/poiSearch/{query}.{ext}?key={Your_API_Key}&apiVersion={apiVersion}&typeahead={typeahead}&limit={limit}&countryset={countryset}&geoBias={geoBias}&radius={radius}&topleft={topleft}&btmRight={btmRight}&language={language}&extendedPostalCodesFor={extendedPostalCodesFor}&categoryset={categoryset}&brandSet={brandSet}&connectorset={connectorset}&fuelSet={fuelSet}&vehicleTypeSet={vehicleTypeSet}&view={view}&openingHours={openingHours}&timezone={timezone}&mapcodes={mapcodes}&minPowerKW={minPowerKW}&maxpowerkw={maxpowerkw}
https://api.tomtom.com/maps/orbis/places/poiSearch/eiffel.json?key={Your_API_Key}&apiVersion=1
curl 'https://api.tomtom.com/maps/orbis/places/poiSearch/eiffel.json?key={Your_API_Key}&apiVersion=1'
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.
- The order of request parameters is not important.
Required parameters | Description |
---|---|
| Base URL for calling the API. |
| A valid response format. |
| An API Key valid for the requested service. |
Optional parameters | Description |
---|---|
| Service version. If the |
| The query string. It must be properly URL-encoded. |
| If the |
| Maximum number of responses that will be returned. |
| Starting offset of the returned results within the full result set.
|
| Comma-separated string of country codes
in ISO 3166-1 alpha-2 or alpha-3
code formats (e.g., FR,ES or FRA,ESP). This will limit the
search to the specified countries. The choice of view may
restrict which countries are available. |
| Latitude, e.g.,
|
| Longitude, e.g.,
|
| If |
| Top-left position of the bounding box. Note: the |
| Bottom-right position of the bounding box. |
| Location bias for search,
which can be specified in different shapes.
Location bias is used to communicate a
location preference to the search engine -
for example, to bias search results to the user's viewport.
Currently two types are supported: point and rectangle.
Notes:
|
| Language in which search results should be returned. Should be one of
the TomTom IETF Supported Languages
tags, case insensitive. When data in the specified language is not
available for a specific field or the language is not specified, the
default language is used (English). |
| Indexes for which extended postal codes should be included in the
results. Available values are described in the Abbreviated Index values page. The value should be a comma-separated
list of index types (in any order) or
|
| A comma-separated list of categories which could be
used to restrict the result to the Points Of Interest
of specific categories. The list of categories can be
discovered using the POI Categories endpoint.
|
| A comma-separated list of brand names which could be used to restrict
the result to Points Of Interest of specific brands.
|
| A comma-separated list of connector types which could be used to
restrict the result to the Points Of Interest of type Electric Vehicle
Station supporting specific connector types.
See the list of Supported Connector Types.
|
| An optional parameter which could be used to restrict the result to the
Points Of Interest of type Electric Vehicle Station supporting at least
one connector with a specific minimal value of power in kilowatts
(closed interval - with that value). |
| An optional parameter which could be used to restrict the result to the
Points Of Interest of type Electric Vehicle Station supporting at least
one connector with a specific maximum value of power in kilowatts
(closed interval - with that value). |
| A comma-separated list of fuel types which could be used to restrict the
result to the Points Of Interest of specific fuels. If
|
| A comma-separated list of vehicle types that could be used
to restrict the result to the Points Of Interest of specific vehicles.
If
|
| Geopolitical View. The context used to resolve the handling
of disputed territories. Views include only |
| List of opening hours for a POI (Points of Interest). |
| Enables the return of a comma-separated mapcodes list. It can also
filter the response to only show selected mapcode types.
See mapcodes in the response.
|
| Used to indicate the mode in which the |
| An optional parameter that provides the possibility to return related
Points Of Interest.
|
Request headers
Optional headers | Description |
---|---|
TomTom-Api-Version | Service version. If the |
Accept-Encoding | Enables response compression. |
Tracking-ID | Specifies an identifier for the request. It can be used to trace a call.
Value: An |
Response data
Response body - JSON
For illustrative purposes the example below is neatly indented and includes all possible response fields. Actual responses are more compact and the fields present will vary based on the result type and the data available. See the following response fields documentation for more information. When requesting JSON output, the response has the following structure:
1{2 "summary": {3 "query": "pizza",4 "queryTime": 99,5 "numResults": 10,6 "totalResults": 4427,7 "geoBias": {8 "lat": 36.98844,9 "lon": -121.9748310 }11 },12 "results": []13}
Each element of the results
array is in the following format:
Results array elements format - JSON
1{2 "type": "POI",3 "id": "g6JpZK84NDAwNjEwMDE4NjUxNDKhY6NVU0GhdqdVbmlmaWVk",4 "score": 5,5 "dist": 0,6 "info": "search:ta:840061001865142-US",7 "poi": {8 "name": "Upper Crust Pizza & Pasta",9 "phone": "+(1)-(831)-4762333",10 "url": "www.uppercrustsc.com/",11 "brands": [12 {13 "name": "Upper Crust"14 }15 ],16 "categorySet": [17 {18 "id": 731501519 }20 ],21 "openingHours": {22 "mode": "nextSevenDays",23 "timeRanges": [24 {25 "startTime": {26 "date": "2019-02-05",27 "hour": 7,28 "minute": 029 },30 "endTime": {31 "date": "2019-02-05",32 "hour": 21,33 "minute": 034 }35 },36 {37 "startTime": {38 "date": "2019-02-06",39 "hour": 7,40 "minute": 041 },42 "endTime": {43 "date": "2019-02-06",44 "hour": 21,45 "minute": 046 }47 },48 {49 "startTime": {50 "date": "2019-02-07",51 "hour": 7,52 "minute": 053 },54 "endTime": {55 "date": "2019-02-07",56 "hour": 21,57 "minute": 058 }59 },60 {61 "startTime": {62 "date": "2019-02-08",63 "hour": 7,64 "minute": 065 },66 "endTime": {67 "date": "2019-02-08",68 "hour": 21,69 "minute": 070 }71 },72 {73 "startTime": {74 "date": "2019-02-09",75 "hour": 7,76 "minute": 077 },78 "endTime": {79 "date": "2019-02-09",80 "hour": 21,81 "minute": 082 }83 },84 {85 "startTime": {86 "date": "2019-02-10",87 "hour": 7,88 "minute": 089 },90 "endTime": {91 "date": "2019-02-10",92 "hour": 12,93 "minute": 094 }95 },96 {97 "startTime": {98 "date": "2019-02-10",99 "hour": 14,100 "minute": 0101 },102 "endTime": {103 "date": "2019-02-10",104 "hour": 21,105 "minute": 0106 }107 }108 ]109 },110 "classifications": [111 {112 "code": "RESTAURANT",113 "names": [114 {115 "nameLocale": "en-US",116 "name": "pizza"117 },118 {119 "nameLocale": "en-US",120 "name": "restaurant"121 }122 ]123 }124 ],125 "timeZone": {126 "ianaId": "Europe/Andorra"127 },128 "features": [129 {130 "order": 0,131 "category": "company_or_office",132 "group": "business"133 },134 {135 "order": 1,136 "category": "theater",137 "group": "cultural"138 }139 ]140 },141 "address": {142 "streetNumber": "2501",143 "streetName": "Soquel Dr",144 "municipalitySubdivision": "Santa Cruz, Live Oak",145 "municipality": "Santa Cruz, Live Oak",146 "countrySecondarySubdivision": "Santa Cruz",147 "countryTertiarySubdivision": "Santa Cruz",148 "countrySubdivision": "CA",149 "postalCode": "95065",150 "extendedPostalCode": "950652023",151 "countryCode": "US",152 "country": "United States Of America",153 "countryCodeISO3": "USA",154 "freeformAddress": "2501 Soquel Dr, Santa Cruz, CA 95065",155 "countrySubdivisionName": "California",156 "localName": "Santa Cruz"157 },158 "position": {159 "lat": 36.98844,160 "lon": -121.97483161 },162 "mapcodes": [163 {164 "type": "Local",165 "fullMapcode": "US-CA FS.WRH3",166 "territory": "US-CA",167 "code": "FS.WRH3"168 },169 {170 "type": "International",171 "fullMapcode": "S4ZW4.990V"172 },173 {174 "type": "Alternative",175 "fullMapcode": "US-CA 4349.S8W",176 "territory": "US-CA",177 "code": "4349.S8W"178 },179 {180 "type": "Alternative",181 "fullMapcode": "US-CA JJCH.H9DF",182 "territory": "US-CA",183 "code": "JJCH.H9DF"184 },185 {186 "type": "Alternative",187 "fullMapcode": "USA JJCH.H9DF",188 "territory": "USA",189 "code": "JJCH.H9DF"190 }191 ],192 "viewport": {193 "topLeftPoint": {194 "lat": 36.98934,195 "lon": -121.97596196 },197 "btmRightPoint": {198 "lat": 36.98754,199 "lon": -121.9737200 }201 },202 "entryPoints": [203 {204 "type": "main",205 "position": {206 "lat": 36.98817,207 "lon": -121.97487208 }209 },210 {211 "type": "minor",212 "functions": ["FrontDoor"],213 "position": {214 "lat": 52.30987,215 "lon": 4.76093216 }217 }218 ],219 "chargingPark": {220 "connectors": [221 {222 "connectorType": "IEC62196Type2CCS",223 "ratedPowerKW": 22.2,224 "currentA": 32,225 "currentType": "AC3",226 "voltageV": 380227 },228 {229 "connectorType": "Tesla",230 "ratedPowerKW": 43.2,231 "currentA": 16,232 "currentType": "AC3",233 "voltageV": 480234 }235 ]236 },237 "dataSources": {238 "chargingAvailability": {239 "id": "442009000132285"240 },241 "parkingAvailability": {242 "id": "00000000-0005-36de-0009-20d4467654e2"243 },244 "fuelPrice": {245 "id": "1:cf81fe50-6218-11ea-a677-d05099d5f839"246 },247 "geometry": {248 "id": "00004e4c-3100-3c00-0000-0000685e23c7"249 }250 }251}
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 | Description |
---|---|
| Summary information about the search that was performed. |
| Result list, sorted in descending order by score. |
summary object | |
Field | Description |
| Query as interpreted by the search engine. |
| Time spent on resolving the query. |
| Number of results in the response. |
| Starting offset of the returned results within the full result set.
|
| Total number of results found. |
| Maximum fuzzy level required to provide results.
|
| Position used to bias the results. |
results array | |
Field | Description |
| Type of result. |
| A stable unique id for the POI index, and a non-stable unique id for the other indexes. Note: Stable id means that it does not change between data releases without changing the location, attribution or classification. |
| Score of the result. >A larger score means there is a probability that a result meeting the query criteria is higher. |
| Unit: meters. This is the distance to an object if |
| Information about the original data source of the result.
|
| Information about the Points of Interest in the result. |
| List of related Points Of Interest.
|
| Structured address for the result. |
| Position of the result. |
| List of |
| A viewport which can be used to display the result on a map. |
| List of entry points of the POI. |
| A list of |
| Optional section. Reference ids for use with the
Additional Data service. |
| Optional section. List of fuel types served by the petrol station. |
| Optional section. List of vehicle types supported by the petrol station. |
poi object | |
Field | Description |
| Name of the POI. |
| Telephone number. |
| The list of POI brands. |
| Website URL. |
| The list of the most specific POI categories. |
| List of opening hours for a POI (Points of Interest). |
| The list of POI category classifications. |
| Time zone information for the POI. |
| The list of the POI features. |
categorySet array | |
Field | Description |
| Category id. The full list of available categories is available under the POI Categories endpoint. |
brands array | |
Field | Description |
| Brand name. |
classifications array | |
Field | Description |
| Fixed top level category code. |
| List of category names with locale code information.
Currently only |
names array | |
Field | Description |
| Locale code of this category name. |
| Category name in the given locale. |
relatedPois object | |
Field | Description |
| Relation type: |
| Pass this as |
address object | |
Field | Description |
| The building number on the street. |
| The street name. |
| Sub City |
| Sub Sub City |
| Neighbourhood |
| City / Town |
| County |
| Named Area |
| State or Province |
| Postal Code / Zip Code |
| Extended postal code (availability dependent on region) |
| Country (Note: This is a two-letter code, not a country name.) |
| Country name |
| ISO alpha-3 country code |
| An address line formatted according to the formatting rules of the result's country of origin. In the case of countries, its full country name. |
| The full name of the first level of a country's administrative
hierarchy. This field appears only in case |
| An address component which represents the name of a geographic area or locality that groups a number of addressable objects for addressing purposes, without being an administrative unit. |
mapcodes object | |
Field | Description |
| Type of mapcode.
|
| The full form of a mapcode ( |
| The
an address has little meaning unless the user also knows what state
it's in (just as, elsewhere, an address has little meaning if the
user doesn’t know what country it's in). More information
about |
| The mapcode without the |
viewport object | |
Field | Description |
| Top-left corner of the rectangle: |
| Bottom-right corner of the rectangle: LatLon |
entryPoints array | |
Field | Description |
| The main entry point. One of: |
| If present, represents the type of access for the POI. |
| Position of the entry point. LatLon |
chargingPark object | |
Field | Description |
| A list of connectors available in the Points Of Interest
of an Electric Vehicle Station type. |
connectors array | |
Field | Description |
| Type of the connector available in Electric Vehicle Station. |
| Rated power of the connector in kilowatts (kW). |
| Current value of the connector in amperes (A). |
| Current type of the connector. |
| Voltage of the connector in Volts (V). |
dataSources object | |
Field | Description |
| Information about the charging stations availability. |
| Information about the parking site availability. |
| Information about the fuel station prices. |
| Information about the geometric shape of the result. |
chargingAvailability object | |
Field | Description |
| Pass this as |
parkingAvailability object | |
Field | Description |
| Pass this as |
fuelPrice object | |
Field | Description |
| Pass this as |
geometry object | |
Field | Description |
| Pass this as |
Field | Description |
| Name of an additional data provider. |
LatLon | |
Field | Description |
| Latitude. min/max: |
| Longitude. min/max: |
openingHours object | |
Field | Description |
| Mode used in the request. Value: nextSevenDays |
| List of time ranges for the next 7 days. |
timeRanges array | |
Field | Description |
| The point in the next 7 days range when a given POI is being opened (or the beginning of the range if it was opened before the range)
|
| The point in the next 7 days range when a given POI is being opened (or the beginning of the range if it was opened before the range)
|
startTime object, endTime object | |
Field | Description |
| Represents current day in calendar year in POI time zone. |
| Hours are in the 24 hour format in the local time of a POI; possible
values are |
| Minutes are in the local time of a POI; possible values are |
timeZone object | |
Field | Description |
| ID from the IANA Time Zone Database. |
features array | |
Field | Description |
| The order is a 0-based value indicating relative order. The order defines the importance of the category. |
| The POI feature category. |
| The group of the POI feature category. |
Response codes
The following table contains response codes signifying successful and failed requests to an API server.
Code | Meaning & possible causes |
---|---|
200 | OK: The search successfully returned zero or more results. |
400 | Bad Request: One or more parameters were incorrectly specified. |
403 | Forbidden: Possible causes include:
|
405 | Method Not Allowed: The HTTP method ( |
404/596 | Not Found: The HTTP Request method ( |
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 response headers sent back from an API server.
Header | Description |
---|---|
Access-Control-Allow-Origin | Ensures that clients implementing the CORS security
model are able to access the response from this service. |
Content-Type | Indicates the format of the response, as chosen by the client.
|
Content-Encoding | If requested by the client, the Search service applies
gzip compression to the responses with the Accept-Encoding header. |
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
The error response content type depends on the ext
parameter.
1{2 "errorText": "Error parsing 'language': Language tag 'en-ES' not supported",3 "detailedError": {4 "code": "BadRequest",5 "message": "Error parsing 'language': Language tag 'en-ES' not supported",6 "target": "language"7 },8 "httpStatusCode": "400"9}
1<?xml version="1.0" encoding="UTF-8"?>2<response>3 <errorText>Error parsing 'language': Language tag 'en-ES' not supported</errorText>4 <detailedError>5 <code>BadRequest</code>6 <message>Error parsing 'language': Language tag 'en-ES' not supported</message>7 <target>language</target>8 </detailedError>9 <httpStatusCode>400</httpStatusCode>10</response>
Error response fields
Primary fields | Description |
---|---|
| A human-readable description of the error. |
| Detailed information about the error. |
| Response codes signifying failed requests to an API server. |
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. |
| Optional. Target of the particular error. |