What is Online Routing?
Online Routing is a suite of web services designed for developers to use our latest scalable online routing engine. Independent tests have established that TomTom routing engine is the best in the industry. Our routing engine uses IQ Routes™ and TomTom Traffic™.
Online Routing consists of the following REST-like APIs:
- Routing - 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.
- Batch - allows batch processing of the Routing requests.
- Matrix - allows calculation of a matrix of route summaries for a set of routes defined with origin and destination locations.
For detailed geographic coverage information, please go here.
- Register/Sign in to TomTom Developer Portal.
- Request an evaluation API key to access the Routing service.
- Read the API documentation and start coding.
- Consider using Maps SDK
- Please, request access to the Batch Routing service in order to be able to execute routing requests in batches.
- Please, request access to the Matrix Routing service in order to be able to execute requests containing matrices of route summaries.
Common use-cases you can implement
- Plan the fastest, shortest or eco route from A to B taking in consideration the real-time traffic and the historical traffic.
- Calculate departure times by planning routes using desired arrival times.
- Plan multiple alternative routes through one single API call.
- Draggable routes: replan the same route with additional intermediate points.
- Plan a route through up to 50 intermediate waypoints.
- Plan the optimized route through up to 20 intermediate waypoints (traveling salesman).
- Plot the route geometry on map tiles from TomTom (or other map suppliers).
- Plan a round trip through at least one intermediate point.
- Calculate the travel time of pre-existing routes (like routes created using GPS trace data or routes planned with other routing engines).
- Plan a route which avoids toll roads, ferries or other types of roads.
- Plan a route for vehicles or pedestrians.
- Have a batch of up to 700 routing requests calculated in parallel and retrieve the results as a single file.
- While having a matrix of origins and destinations calculate routing costs for each origin-to-destination combination and retrieve it in a single file.
- Plan routes for immediate departure and TomTom's industry-leading traffic data will be used to optimize journey times, minimize traffic delays and get to your destination faster.
- Plan routes in the future to take advantage of TomTom's extensive historic traffic database. Using past traffic patterns, the routing engine can predict journey times and calculate fastest routes for any day and time.
There are many ways to get from A to B. Sometimes your users want to know about them.
- You can reuse the same waypoints in calls with different routing parameters (like fastest, shortest, and eco).
- You can request more than one route matching your input parameters within the same call.
In addition to the start and end of the route, you can specify intermediate waypoints that the planned route must go through.
- Use additional waypoints to create draggable routes, where the user can replan a displayed route to go via a desired location.
- Use our Optimized Routing algorithm to obtain the best order to visit your chosen waypoints in.
Supported services for batch processing
The Batch Routing service supports features of Online Routing - Calculate Route that use HTTP GET requests. The Supporting Points feature is not available, as it uses HTTP POST requests.
The Online Routing - Calculate Reachable Range service cannot be called in batches for now.
Supported services for matrix processing
The Matrix Routing service uses Online Routing to compute route costs. It supports Online Routing parameters excluding: locations, maxAlternatives, instructionsType, language, computeBestOrder, routeRepresentation, vehicleHeading, report, callback. The Supporting Points feature is also not available, as it uses HTTP POST requests.