Find the way from A to B on a Leaflet map. The plugin supports multiple backends:
- OSRM - builtin and used by default
- GraphHopper - through plugin lrm-graphopper
- Mapzen Valhalla - through plugin lrm-valhalla
- Mapbox Directions API - through plugin lrm-mapbox
- TomTom Online Routing API - through plugin lrm-tomtom by Mathias Rohnstock
- Standard Leaflet control, with Leaflet look and feel
- Routing from start to destination, with possibility of via points
- Add, edit and remove waypoints through both address input and using the map
- Multiple language support
- Highly customizable for advanced use
- Customizable look (theming / skins)
- Open Source released under ISC License (more or less equivalent with the MIT license)
Go to the Leaflet Routing Machine site for more information, demos, tutorials and more.
npm install
This requires Node and npm, as well as grunt
.