Fork me on GitHub

Leaflet Routing Machine

Easy, flexible routing for Leaflet

About Getting Started Tutorials API Download

Download

Download the latest release of Leaflet Routing Machine:

These distributions include files that can be loaded with a normal <script> tag in your page.

Install

You can also install Leaflet Routing Machine using NPM, and use it with for example Browserify:

npm install --save leaflet-routing-machine

Using

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>

Copyright © 2015 Per Liedman, released under ISC License. Logo by Alexey Ivanov, released under Creative Commons CC-BY 3.0.