Fork me on GitHub

Leaflet Routing Machine

Easy, flexible routing for Leaflet

« Back to tutorials


This tutorial will show you how to download, install and get started with using Leaflet Routing Machine.

Downloading and installing

You can download a ZIP containing the necessary files, or you can install it with NPM if you plan to bundle your scripts with Browserify or a similar tool

npm install --save leaflet-routing-machine

Once you have the files, you need to include three files so that they are accessible from your page: