RouteOptions
Interface: RouteOptions
Options for route calculation
Properties
departureDate?
optionaldepartureDate?:Date|null
Departure date/time for the route (useful for transit routes)
isWheelchair?
optionalisWheelchair?:boolean
Whether to avoid stairs and escalators (PMR - Person with Reduced Mobility)
itineraryRules?
optionalitineraryRules?:string[]
Itinerary rules to apply to the route
optimizeWaypoints?
optionaloptimizeWaypoints?:boolean
Reorder waypoints for the shortest overall route instead of visiting them
in the given order. Leave unset/false for imposed-access routing where the
order matters (e.g. force a path through a specific door).
waypoints?
optionalwaypoints?:LatLngLike[]
Intermediate stops the route must pass through, in order, between
origin and destination. Enables imposed-access routing (e.g. force a
path through a specific door).