# Routing API

> Routing consists of the following service: <b>Calculate Route</b> Calculates a route between an origin and a destination, passing through waypoints (if specified). Additional routing parameters like traffic, avoidance conditions, departure/arrival time etc. can be taken into account. <b>Calculate Reachable Range</b> Calculates a set of locations that can be reached from the origin point, subject to the available fuel or energy budget that is specified in the request.

Routing is a geocoding API from tomtom.com. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 4 endpoints.

## At a glance

- Category: [Geocoding](https://www.openparable.com/apis/category/geocoding)
- Provider: tomtom.com
- Authentication: API key
- HTTPS: Yes
- CORS: Not stated
- Base URL: https://api.tomtom.com
- Documentation: https://developer.tomtom.com/contact-us
- OpenAPI description: https://api.apis.guru/v2/specs/tomtom.com/routing/1.0.0/openapi.json
- Version: 1.0.0
- Specification updated: 2019-02-25

## Example request

```bash
curl -X GET "https://api.tomtom.com/routing/VERSIONNUMBER/calculateReachableRange/ORIGIN/CONTENTTYPE" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
```

## Endpoints

- `GET /routing/{versionNumber}/calculateReachableRange/{origin}/{contentType}` — Reachable Range
- `POST /routing/{versionNumber}/calculateReachableRange/{origin}/{contentType}` — Reachable Range
- `GET /routing/{versionNumber}/calculateRoute/{locations}/{contentType}` — Calculate Route
- `POST /routing/{versionNumber}/calculateRoute/{locations}/{contentType}` — Calculate Route

## Questions

### Does the Routing API need an API key?

Yes. The Routing API uses API key authentication; the documentation explains how to get credentials.

### Does the Routing API support HTTPS?

Yes, the Routing API is served over HTTPS.

### How many endpoints does the Routing API have?

Its OpenAPI description lists 4 endpoints in version 1.0.0. All of them are shown on this page.

### What are alternatives to the Routing API?

Other Geocoding APIs include Bing Maps, ip-api, OpenStreetMap, GeographQL, IP Address Details.

## Similar geocoding APIs

- [Bing Maps](https://www.openparable.com/apis/bing-maps): Create/customize digital maps based on Bing Maps data
- [ip-api](https://www.openparable.com/apis/ip): Find location with IP address or domain
- [OpenStreetMap](https://www.openparable.com/apis/openstreetmap): Navigation, geolocation and geographical data
- [GeographQL](https://www.openparable.com/apis/geographql): A Country, State, and City GraphQL API
- [IP Address Details](https://www.openparable.com/apis/ip-address-details): Find geolocation with ip address
- [ipapi.co](https://www.openparable.com/apis/ipapi-co): Find IP address location information
- [Mapbox](https://www.openparable.com/apis/mapbox): Create/customize beautiful digital maps
- [HERE Maps](https://www.openparable.com/apis/here-maps): Create/customize digital maps based on HERE Maps data
- [Kakao Maps](https://www.openparable.com/apis/kakao-maps): Kakao Maps provide multiple APIs for Korean maps
- [MapQuest](https://www.openparable.com/apis/mapquest): To access tools and resources to map the world
- [IP2Location](https://www.openparable.com/apis/ip2location): IP geolocation web service to get more than 55 parameters
- [Google Earth Engine](https://www.openparable.com/apis/google-earth-engine): A cloud-based platform for planetary-scale environmental data analysis

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/routing (OpenParable). Cite the canonical URL above.
