OptionalavoidSpecifies something that the route calculation should try to avoid when determining the route.
OptionalrouteSpecifies the type of optimization used when calculating routes. Possible values are:
OptionaltrafficDecides how traffic is considered for computing routes.
Possible values are:
Cost model criteria for route optimization.
Defines routing preferences and constraints that influence path selection. Combines route type, traffic consideration, and avoidance criteria to determine what makes a route "better" in the eyes of 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