Easy, flexible routing for Leaflet
About Getting Started Tutorials API DownloadDownload the latest release of Leaflet Routing Machine:
These distributions include files that can be loaded with a normal <script> tag in your page.
You can also install Leaflet Routing Machine using NPM, and use it with for example Browserify:
npm install --save leaflet-routing-machine
Include leaflet-routing-machine.css and leaflet-routing-machine.js in a Leaflet page:
[...]
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<link rel="stylesheet" href="leaflet-routing-machine.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script src="leaflet-routing-machine.js"></script>