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
- Mapbox Directions API - through plugin lrm-mapbox
- Show returned route on a map
- Edit start, end and waypoint points on the map
- Geocoding to search start, end and waypoint locations from text
- Wrapper to handle OSRM's API
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
.