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, as RouteType describes.
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