Multiple routes from different origins

Display routes from multiple origins to a common destination

View on GitHub
SDK 1.0.0-rc.7

Three stations plan their own way to one airport, each route in its own colour, with the shared destination marked once.

  • discoverOnePlace returns a Place that calculateRoute and bboxFromGeoJSON both take as it stands, so nothing is converted between search and map.
  • Every RoutingModule.create is an independent instance, so a color per origin is all the colour separation takes.
  • PlacesModule.show marks the common destination, keeping it distinct from the route waypoint pins.

Related examples