OptionalcandidateCandidate approach points for this stop, for the routing engine to choose between.
Use this when a place has several usable entrances and you want the engine to pick the one that suits the route, rather than resolving a single entry point yourself. Takes precedence over CalculateRouteParams.useEntryPoints for this stop.
Deliberately not called entryPoints: a Place already carries entryPoints of its
own in properties, describing entrances found by search, and those are not sent to the
routing API. These are positions you choose to offer the router.
OptionallegCost model overrides for the leg arriving at this stop.
Falls back to the route-wide CostModel for anything not set here. Ignored on the origin, which has no arriving leg.
OptionalpreferredIndex into RouteStopOptions.candidateEntryPoints of the preferred approach point.
Per-stop routing options, carried on the
propertiesof a route stop.Attach these to any waypoint in CalculateRouteParams.locations to control how the route reaches that stop, and how long it waits there.
Remarks
Leg attribution. Options describe the leg arriving at this stop. Reading them that way is what keeps them attached to the right stop when another stop is inserted earlier in the list.
legCostModelon the origin has no leg to describe and is ignored.The wait at a stop is WaypointProps.pauseDurationSeconds, which every waypoint carries — the map reads it too, to label the stop's pin.
Entry points. Explicit
candidateEntryPointshand the routing engine a set of approach points and let it choose; this takes precedence over the route-wide CalculateRouteParams.useEntryPoints, which only resolves a single position client-side.Example