FAQ
Frequently Asked Questions
What does ‘Engine error while executing route request: STOPPED’ mean?
Requests in the Routing API are forcefully canceled once they exceed an internal compute time limit (currently around 30 seconds) in order to avoid resource starvation scenarios.
In this case, the Routing API returns the following error response:
{ "detailedError": { "message": "Engine error while executing route request: STOPPED: The request exceeded the internal compute time limit and was canceled. For more information, go to: https://developer.tomtom.com/routing-api/documentation/product-information/faq", "code": "COMPUTE_TIME_LIMIT_EXCEEDED" }}A request was canceled, or the response time is long. How can I reduce the response time?
The length of the resulting route for a route calculation has the largest direct impact on the time it takes to compute it.
In addition most routing options have some impact on compute time.
The default options produce fast responses. Using non-default options typically increases the response time.
The following options have a big impact on the response time:
- long distance between route planning locations
maxPathAlternativeRoutesgreater than 0- any
avoidsoptions, in particular,motorways,tollRoads, andferries routeTypeoptionsthrillingandshortvehicleMaxSpeedInKilometersPerHourless than 60