> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# TomTom

> TomTom's Search API (free-text and POI search, nearby places, geocoding, reverse geocoding) and Routing API (traffic-aware routes for cars, trucks, bikes and walking).

![](https://mintcdn.com/webrouter/8QP9EZc8V07Kl-0I/logo/data-apis/tomtom.webp?fit=max\&auto=format\&n=8QP9EZc8V07Kl-0I\&q=85\&s=2e07d0f6e5a88d764115323187e86e8b)

[Web Catalog · Maps](https://docs.webrouter.net/data-apis.md?category=maps)

Needs&#x20;

`TOMTOM_API_KEY`

Endpoints

5

Auth

Key in query

[Vendor docs](https://docs.tomtom.com/search-api/documentation/product-information/introduction)

&#x20;·&#x20;

[Pricing](https://developer.tomtom.com/pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `TOMTOM_API_KEY` | required | A TomTom API key (developer.tomtom.com > Dashboard > Keys), sent as the key query parameter. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Coordinates are latitude first everywhere here: lat,lon in positions, bounding boxes and route locations.
* Search answers page with limit (max 100) and ofs; geocoding caps the whole result set at 2,000 (ofs up to 1,900).
* lat and lon without radius only bias the ranking; add radius (metres) to restrict results to the circle.
* These are the global hosts; South Korea uses kr-api.tomtom.com, which this entry does not cover. TomTom also offers newer Orbis versions of these APIs.

## Endpoints

GET

Search places and addresses by free text

Addresses, POIs, streets and areas matching free text, with optional location and category limits.

[Open](#tomtom-search-fuzzy)

GET

Find places near a point

POIs around a latitude and longitude, optionally by category or brand.

[Open](#tomtom-search-nearby)

GET

Geocode an address

Coordinates and structured address for an address string.

[Open](#tomtom-geocode-forward)

GET

Reverse geocode a coordinate

The address, or the administrative area, at a latitude,longitude.

[Open](#tomtom-geocode-reverse)

GET

Calculate a route

Distance, travel time with live and historic traffic, legs and geometry between an origin, waypoints and a destination.

[Open](#tomtom-routing-calculate)

### Search places and addresses by free text

GET

`/search/2/search/{query}.json`

`tomtom.search.fuzzy`

Addresses, POIs, streets and areas matching free text, with optional location and category limits.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query` required</td><td>string</td><td>path</td><td>Search text (or coordinates). Example `pizza near Amsterdam Centraal`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results, default 10, max 100.
      </td>
    </tr>

    <tr>
      <td>
        `ofs`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Offset into the result set, default 0.
      </td>
    </tr>

    <tr>
      <td>
        `countrySet`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated ISO alpha-2 or alpha-3 country codes, e.g. NL,BE.
      </td>
    </tr>

    <tr>
      <td>
        `lat`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Latitude to bias or, with radius, restrict to.
      </td>
    </tr>

    <tr>
      <td>
        `lon`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Longitude to bias or, with radius, restrict to.
      </td>
    </tr>

    <tr>
      <td>
        `radius`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Metres around lat/lon to restrict to.
      </td>
    </tr>

    <tr>
      <td>
        `topLeft`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Bounding box top-left as lat,lon.
      </td>
    </tr>

    <tr>
      <td>
        `btmRight`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Bounding box bottom-right as lat,lon.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        IETF language tag for results.
      </td>
    </tr>

    <tr>
      <td>
        `idxSet`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Indexes to search, default POI,PAD,Str,Xstr,Geo,Addr.
      </td>
    </tr>

    <tr>
      <td>
        `categorySet`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated POI category ids.
      </td>
    </tr>

    <tr>
      <td>
        `brandSet`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated brand names (quote a name containing a comma).
      </td>
    </tr>

    <tr><td>`openingHours`</td><td>string</td><td>query</td><td>nextSevenDays adds opening hours. One of `nextSevenDays`</td></tr>

    <tr>
      <td>
        `typeahead`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Treat the text as partial input.
      </td>
    </tr>

    <tr>
      <td>
        `view`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Geopolitical view, e.g. Unified, IN, CN.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.tomtom.com/search-api/documentation/search-service/fuzzy-search) · Same job: [Amap (Gaode) Web Service](https://docs.webrouter.net/data-apis/amap.md#amap-places-search), [Atly](https://docs.webrouter.net/data-apis/atly.md#atly-places-search), [Best Buy](https://docs.webrouter.net/data-apis/bestbuy.md#bestbuy-stores-search), [FDIC BankFind Suite](https://docs.webrouter.net/data-apis/fdic.md#fdic-locations-search), [Foursquare Places API](https://docs.webrouter.net/data-apis/foursquare.md#foursquare-places-search), [Geoapify](https://docs.webrouter.net/data-apis/geoapify.md#geoapify-places-search)

```python Python theme={null}
router.call_data_api("tomtom.search.fuzzy", {'query': 'pizza near Amsterdam Centraal'})
```

```text MCP theme={null}
call_data_api(endpoint="tomtom.search.fuzzy", params={"query": "pizza near Amsterdam Centraal"})
```

### Find places near a point

GET

`/search/2/nearbySearch/.json`

`tomtom.search.nearby`

POIs around a latitude and longitude, optionally by category or brand.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`lat` required</td><td>number</td><td>query</td><td>Latitude. Example `36.98844`</td></tr>
    <tr><td>`lon` required</td><td>number</td><td>query</td><td>Longitude. Example `-121.97483`</td></tr>
    <tr><td>`radius`</td><td>integer</td><td>query</td><td>Metres to restrict to; without it the point only biases ranking. Example `1000`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results, default 10, max 100.
      </td>
    </tr>

    <tr>
      <td>
        `ofs`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Offset for paging, default 0.
      </td>
    </tr>

    <tr><td>`categorySet`</td><td>string</td><td>query</td><td>Comma-separated POI category ids, e.g. 7315 (restaurant). Example `7315`</td></tr>

    <tr>
      <td>
        `brandSet`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated brand names.
      </td>
    </tr>

    <tr>
      <td>
        `countrySet`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated ISO country codes.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        IETF language tag.
      </td>
    </tr>

    <tr><td>`openingHours`</td><td>string</td><td>query</td><td>nextSevenDays adds opening hours. One of `nextSevenDays`</td></tr>

    <tr>
      <td>
        `view`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Geopolitical view.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.tomtom.com/search-api/documentation/search-service/nearby-search) · Same job: [Amap (Gaode) Web Service](https://docs.webrouter.net/data-apis/amap.md#amap-places-search), [Atly](https://docs.webrouter.net/data-apis/atly.md#atly-places-search), [Best Buy](https://docs.webrouter.net/data-apis/bestbuy.md#bestbuy-stores-search), [FDIC BankFind Suite](https://docs.webrouter.net/data-apis/fdic.md#fdic-locations-search), [Foursquare Places API](https://docs.webrouter.net/data-apis/foursquare.md#foursquare-places-search), [Geoapify](https://docs.webrouter.net/data-apis/geoapify.md#geoapify-places-search)

```python Python theme={null}
router.call_data_api("tomtom.search.nearby", {'lat': 36.98844, 'lon': -121.97483, 'radius': 1000, 'categorySet': '7315'})
```

```text MCP theme={null}
call_data_api(endpoint="tomtom.search.nearby", params={"lat": 36.98844, "lon": -121.97483, "radius": 1000, "categorySet": "7315"})
```

### Geocode an address

GET

`/search/2/geocode/{query}.json`

`tomtom.geocode.forward`

Coordinates and structured address for an address string.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query` required</td><td>string</td><td>path</td><td>The address. Example `De Ruijterkade 154, Amsterdam`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results, default 10, max 100.
      </td>
    </tr>

    <tr>
      <td>
        `ofs`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Offset, default 0, max 1900.
      </td>
    </tr>

    <tr>
      <td>
        `countrySet`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated ISO alpha-2 or alpha-3 country codes.
      </td>
    </tr>

    <tr>
      <td>
        `lat`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Latitude to bias toward.
      </td>
    </tr>

    <tr>
      <td>
        `lon`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Longitude to bias toward.
      </td>
    </tr>

    <tr>
      <td>
        `radius`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Metres around lat/lon to restrict to.
      </td>
    </tr>

    <tr>
      <td>
        `topLeft`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Bounding box top-left as lat,lon; radius wins if both are sent.
      </td>
    </tr>

    <tr>
      <td>
        `btmRight`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Bounding box bottom-right as lat,lon.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        IETF language tag.
      </td>
    </tr>

    <tr>
      <td>
        `view`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Geopolitical view.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.tomtom.com/search-api/documentation/geocoding-service/geocode) · Same job: [Amap (Gaode) Web Service](https://docs.webrouter.net/data-apis/amap.md#amap-geocode), [API Ninjas](https://docs.webrouter.net/data-apis/apininjas.md#apininjas-geocode), [Geoapify](https://docs.webrouter.net/data-apis/geoapify.md#geoapify-geocode-search), [Google Maps Platform](https://docs.webrouter.net/data-apis/google-maps.md#google-maps-geocode-forward), [GraphHopper Directions API](https://docs.webrouter.net/data-apis/graphhopper.md#graphhopper-geocode-forward), [HERE](https://docs.webrouter.net/data-apis/here-maps.md#here-maps-geocode)

```python Python theme={null}
router.call_data_api("tomtom.geocode.forward", {'query': 'De Ruijterkade 154, Amsterdam'})
```

```text MCP theme={null}
call_data_api(endpoint="tomtom.geocode.forward", params={"query": "De Ruijterkade 154, Amsterdam"})
```

> [!NOTE]
>
> * storeResult and typeahead are deprecated on this call and may answer 400; leave them out.

### Reverse geocode a coordinate

GET

`/search/2/reverseGeocode/{position}.json`

`tomtom.geocode.reverse`

The address, or the administrative area, at a latitude,longitude.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`position` required</td><td>string</td><td>path</td><td>lat,lon. Example `52.157831,5.223776`</td></tr>

    <tr>
      <td>
        `radius`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Search radius in metres, default 10000.
      </td>
    </tr>

    <tr>
      <td>
        `returnSpeedLimit`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add the posted speed limit.
      </td>
    </tr>

    <tr>
      <td>
        `heading`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Direction of travel, -360 to 360 (0 north, 90 east), to pick the right side of the road.
      </td>
    </tr>

    <tr>
      <td>
        `entityType`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated area levels to return instead of an address: Country, CountrySubdivision, Municipality, PostalCodeArea, Neighbourhood...
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        IETF language tag.
      </td>
    </tr>

    <tr>
      <td>
        `view`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Geopolitical view.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.tomtom.com/search-api/documentation/reverse-geocoding-service/reverse-geocode) · Same job: [Geoapify](https://docs.webrouter.net/data-apis/geoapify.md#geoapify-geocode-reverse), [Google Maps Platform](https://docs.webrouter.net/data-apis/google-maps.md#google-maps-geocode-reverse), [GraphHopper Directions API](https://docs.webrouter.net/data-apis/graphhopper.md#graphhopper-geocode-reverse), [HERE](https://docs.webrouter.net/data-apis/here-maps.md#here-maps-revgeocode), [OpenCage Geocoding](https://docs.webrouter.net/data-apis/opencage.md#opencage-geocode-reverse)

```python Python theme={null}
router.call_data_api("tomtom.geocode.reverse", {'position': '52.157831,5.223776'})
```

```text MCP theme={null}
call_data_api(endpoint="tomtom.geocode.reverse", params={"position": "52.157831,5.223776"})
```

> [!NOTE]
>
> * Path values are percent-encoded, so the comma goes as %2C; not yet checked against a live call.

### Calculate a route

GET

`/routing/1/calculateRoute/{locations}/json`

`tomtom.routing.calculate`

Distance, travel time with live and historic traffic, legs and geometry between an origin, waypoints and a destination.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`locations` required</td><td>string</td><td>path</td><td>lat,lon points joined with colons, origin first and destination last; up to 150 waypoints between. Example `52.50931,13.42936:52.50274,13.43872`</td></tr>
    <tr><td>`travelMode`</td><td>string</td><td>query</td><td>Default car. One of `car`, `truck`, `taxi`, `bus`, `van`, `motorcycle`, `bicycle`, `pedestrian`</td></tr>
    <tr><td>`routeType`</td><td>string</td><td>query</td><td>Default fastest; shortest can time out on long routes. One of `fastest`, `shortest`, `short`, `eco`, `thrilling`</td></tr>

    <tr>
      <td>
        `traffic`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Default true; false ignores live traffic (historic speeds still apply).
      </td>
    </tr>

    <tr>
      <td>
        `departAt`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        now (default) or an ISO date-time; not with arriveAt.
      </td>
    </tr>

    <tr>
      <td>
        `arriveAt`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO date-time to arrive by; not with departAt.
      </td>
    </tr>

    <tr>
      <td>
        `avoid`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        One of tollRoads, motorways, ferries, unpavedRoads, carpools, alreadyUsedRoads, borderCrossings, tunnels, carTrains, lowEmissionZones.
      </td>
    </tr>

    <tr>
      <td>
        `maxAlternatives`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Alternative routes, 0-5, default 0.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        IETF tag for instructions, default en-GB.
      </td>
    </tr>

    <tr><td>`computeTravelTimeFor`</td><td>string</td><td>query</td><td>all adds no-traffic, historic and live travel times. One of `none`, `all`</td></tr>

    <tr>
      <td>
        `sectionType`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Sections to report, e.g. toll, motorway, tunnel, traffic.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.tomtom.com/routing-api/documentation/tomtom-maps/calculate-route) · Same job: [Amap (Gaode) Web Service](https://docs.webrouter.net/data-apis/amap.md#amap-directions-driving), [Geoapify](https://docs.webrouter.net/data-apis/geoapify.md#geoapify-routing), [HERE](https://docs.webrouter.net/data-apis/here-maps.md#here-maps-routes), [Mapbox](https://docs.webrouter.net/data-apis/mapbox.md#mapbox-directions-get)

```python Python theme={null}
router.call_data_api("tomtom.routing.calculate", {'locations': '52.50931,13.42936:52.50274,13.43872'})
```

```text MCP theme={null}
call_data_api(endpoint="tomtom.routing.calculate", params={"locations": "52.50931,13.42936:52.50274,13.43872"})
```

> [!NOTE]
>
> * Path values are percent-encoded, so the colons and commas go as %3A and %2C; not yet checked against a live call.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.