OptionalavoidWhat the route calculation tries to avoid when determining the route.
OptionalavoidRectangular areas for the routing engine to bypass, each expressed as a HasBBox.
You can pass up to 10 rectangles, for example to avoid construction zones, restricted areas, or known congestion points.
OptionalrouteThe type of optimisation that route calculation uses. The values are:
fast optimises for travel time, while keeping the routes sensible. For example, the calculation may avoid shortcuts along inconvenient side roads or long detours that only save very little time.short finds a good compromise between small travel time and short travel distance.efficient finds a good compromise between small travel time and low fuel or energy consumption.thrilling includes interesting or challenging roads and uses as few motorways as possible.
Routes planned with routeType=thrilling are limited to 900km.OptionaltrafficHow route computation considers traffic.
The values are:
The cost model criteria for route optimisation.
They define the routing preferences and constraints that influence path selection. They combine route type, traffic, and avoidance criteria to decide what makes a route "better" for the routing engine.
Remarks
The cost model affects how the route path is calculated, but does not affect what other data the response includes.
The cost model balances multiple factors:
Example