Back to all examples
Multiple routes from different origins
Display routes from multiple origins to a common destination
Three stations plan their own way to one airport, each route in its own colour, with the shared destination marked once.
discoverOnePlacereturns aPlacethatcalculateRouteandbboxFromGeoJSONboth take as it stands, so nothing is converted between search and map.- Every
RoutingModule.createis an independent instance, so acolorper origin is all the colour separation takes. PlacesModule.showmarks the common destination, keeping it distinct from the route waypoint pins.
Related examples
Route with custom main color
Calculate and display a route with its main color changed.
Customization
Routing
Web
Route with MapLibre Customization
Calculate and display a route with MapLibre layer customizations on it.
Customization
Routing
Web
Multiple parallel routes
Display multiple routes simultaneously from coordinate pairs
Customization
Routing
Web
Speed limit signs by country
Post each speed limit as a road sign shaped the way its country shapes it
Customization
Routing
Web