Values.RouteMatrixAvoidanceOptionsSourceSpecifies options for areas to avoid when calculating the route. This is a best-effort avoidance setting, meaning the router will try to honor the avoidance preferences but may still include restricted areas if no feasible alternative route exists. If avoidance options are not followed, the response will indicate that the avoidance criteria were violated.
type nonrec t = {areas : RouteMatrixAvoidanceOptionsAreasList.t option;Areas to be avoided.
*)carShuttleTrains : SensitiveBoolean.t option;Avoid car-shuttle-trains while calculating the route.
*)controlledAccessHighways : SensitiveBoolean.t option;Avoid controlled access highways while calculating the route.
*)dirtRoads : SensitiveBoolean.t option;Avoid dirt roads while calculating the route.
*)ferries : SensitiveBoolean.t option;Avoid ferries while calculating the route.
*)tollRoads : SensitiveBoolean.t option;Avoids roads where the specified toll transponders are the only mode of payment.
*)tollTransponders : SensitiveBoolean.t option;Avoids roads where the specified toll transponders are the only mode of payment.
*)truckRoadTypes : TruckRoadTypeList.t option;Truck road type identifiers. BK1 through BK4 apply only to Sweden. A2,A4,B2,B4,C,D,ET2,ET4 apply only to Mexico. There are currently no other supported values as of 26th April 2024.
*)tunnels : SensitiveBoolean.t option;Avoid tunnels while calculating the route.
*)uTurns : SensitiveBoolean.t option;Avoid U-turns for calculation on highways and motorways.
*)zoneCategories : RouteMatrixAvoidanceZoneCategoryList.t option;Zone categories to be avoided.
*)}val to_value :
t ->
[> `Structure of
(string
* [> `Boolean of SensitiveBoolean.t
| `List of
[> `String of TruckRoadType.t
| `Structure of
(string
* [> `Enum of string
| `Structure of
(string
* [> `List of
[> `Double of Double.t
| `List of
[> `List of [> `Double of Double.t ] list ] list
| `String of PolylineRing.t ]
list ])
list ])
list ]
list ])
list ]