RoutePlanningOptions
Options for planning routes, which are passed to one of the various route planners.
Note: The parameters departAt and arriveAt are not supported with the Orbis map.
Throws
if an invalid combination of options is used. Invalid combinations are:
using non-zero
pauseTime
for the origin or destinationusing alternativeRoutesOptions with no routeLegOptions or no supporting points in the first leg
using arriveAt with alternativeRoutesOptions.minDeviationTime or alternativeRoutesOptions.minDeviationDistance
using chargingOptions with
a non-motorized vehicle
a motorized vehicle without an electric engine
an electric vehicle without a charge level
chargingOptions.minChargeAtDestination greater than chargeLevel.maxCharge
chargingOptions.minChargeAtChargingStops greater than chargeLevel.maxCharge
waypointOptimization other than WaypointOptimization.None
costModel.routeType other than RouteType.Fast
costModel.considerTraffic other than ConsiderTraffic.Yes; this limitation is applicable for the Orbis map only
using path alternatives with waypoint optimization
using route- and leg-level routeType together
specifying different number of route leg options than the number of route legs based on the provided itinerary
using guidanceOptions with a vehicle other than VehicleType.Car, VehicleType.Motorcycle or VehicleType.Truck
Constructors
Options for planning routes, which are passed to one of the various route planners.
Properties
Options for calculating more than one route.
Specifies the road side on arrival preference for waypoints and destination.
Avoidance criteria.
Additional options for electric vehicles to take charging into account.
Use live traffic in the route calculation.
Properties for the generated instructions. Specify null for no instructions generation.
Specifies how much guidance information (instructions and lane guidance) is returned with the route. Defaults to RouteInformationMode.Complete.
Options regarding the way the request is sent to the server.
Important: This is a Public Preview API. It may be changed or removed at any time.
Options for each route leg, such as a polyline to follow.
The vehicle dimensions, restrictions and engine parameters. When guidanceOptions are given, the vehicle has to be of type VehicleType.Car, VehicleType.Motorcycle or VehicleType.Truck. Please use VehicleType.Car for VehicleType.Taxi.
Specifies whether to optimize the order of waypoints, and if so, how.