spatial-monorepo / wayfinding/src / getDirectionsMultiDestinationGridEngine
Function: getDirectionsMultiDestinationGridEngine()
getDirectionsMultiDestinationGridEngine(
archive,graph,origin,destinations,opts?):DirectionsResult
Defined in: packages/wayfinding/src/directions-grid.ts:143
Grid-engine implementation of getDirectionsMultiDestination (issue #483): same nearest-neighbour-by-haversine ordering as the legacy engine (shared via routeNearestNeighborChain), with each leg routed by getDirectionsGridEngine instead of the legacy getDirections.
Parameters
archive
graph
origin
string | string[] | null
destinations
string[]
opts?
DirectionOptions = {}
