{"id":13426299,"url":"https://github.com/perliedman/leaflet-routing-machine","last_synced_at":"2025-05-14T14:08:24.885Z","repository":{"id":13759519,"uuid":"16454259","full_name":"perliedman/leaflet-routing-machine","owner":"perliedman","description":"Control for routing in Leaflet","archived":false,"fork":false,"pushed_at":"2024-03-11T13:35:19.000Z","size":3064,"stargazers_count":1130,"open_issues_count":127,"forks_count":357,"subscribers_count":48,"default_branch":"master","last_synced_at":"2025-05-14T13:07:04.840Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.liedman.net/leaflet-routing-machine/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perliedman.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2014-02-02T12:36:27.000Z","updated_at":"2025-05-09T23:50:05.000Z","dependencies_parsed_at":"2024-01-06T15:38:09.329Z","dependency_job_id":"b7ef0eeb-acd8-446c-929f-8f63697cf89b","html_url":"https://github.com/perliedman/leaflet-routing-machine","commit_stats":{"total_commits":436,"total_committers":50,"mean_commits":8.72,"dds":"0.37385321100917435","last_synced_commit":"04e899ea765cadae033d941e9de13846540ce69b"},"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perliedman%2Fleaflet-routing-machine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perliedman%2Fleaflet-routing-machine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perliedman%2Fleaflet-routing-machine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perliedman%2Fleaflet-routing-machine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perliedman","download_url":"https://codeload.github.com/perliedman/leaflet-routing-machine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254150015,"owners_count":22022855,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T00:01:31.285Z","updated_at":"2025-05-14T14:08:24.866Z","avatar_url":"https://github.com/perliedman.png","language":"JavaScript","readme":"[Leaflet Routing Machine]((https://www.liedman.net/leaflet-routing-machine/)) [![NPM version](https://img.shields.io/npm/v/leaflet-routing-machine.svg)](https://www.npmjs.com/package/leaflet-routing-machine) ![Leaflet 1.0 compatible!](https://img.shields.io/badge/Leaflet%201.0-%E2%9C%93-1EB300.svg?style=flat) [![Join the chat at https://gitter.im/leaflet-routing-machine/Lobby](https://badges.gitter.im/leaflet-routing-machine/Lobby.svg)](https://gitter.im/leaflet-routing-machine/Lobby?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n=======================\n\n**This plugin is barely maintained!** It has been a good long while since I had any reason to work with routing or Leaflet, and it does not look like that will change. I do not spend time on maintaining this plugin, and only rarely can I find time to respond to issues. If you want to take over as maintainer, feel free to contact me at per@liedman.net.\n\nFind the way from A to B on a Leaflet map. The plugin supports multiple backends:\n\n* [OSRM](http://project-osrm.org/) - builtin and used by default (version 5)\n* [Mapbox Directions API](https://www.mapbox.com/developers/api/directions/) - builtin with the class `L.Routing.Mapbox`\n* [GraphHopper](https://graphhopper.com/) - through plugin [lrm-graphopper](https://github.com/perliedman/lrm-graphhopper)\n* [Mapzen Valhalla](https://mapzen.com/projects/valhalla/) - through plugin [lrm-valhalla](https://github.com/valhalla/lrm-valhalla)\n* [TomTom Online Routing API](http://developer.tomtom.com/io-docs) - through plugin [lrm-tomtom](https://github.com/mrohnstock/lrm-tomtom) by [Mathias Rohnstock](https://github.com/mrohnstock)\n* Legacy support for OSRM version 4 through plugin [lrm-osrm4](https://github.com/perliedman/lrm-osrm4)\n* Esri - through plugin [lrm-esri](https://github.com/jgravois/lrm-esri)\n\n## Features\n\n* Standard Leaflet control, with Leaflet look and feel\n* Routing from start to destination, with possibility of via points\n* Add, edit and remove waypoints through both address input and using the map\n* Multiple language support\n* Highly customizable for advanced use\n* Customizable look (theming / skins)\n* Open Source released under ISC License (more or less equivalent with the MIT license)\n\n__Go to the [Leaflet Routing Machine site](https://www.liedman.net/leaflet-routing-machine/) for more information, demos, tutorials and more.__\n\n**Update 2020-04-06:** Out of the box, Leaflet Routing Machine relies on OSRM's demo server. At this moment, the demo server (which is outside scope of the plugin and outside control of the plugin's author) is [no longer maintained, and its SSL certificate has expired](https://github.com/Project-OSRM/osrm-backend/issues/5655). The plugin will not work unless you [configure a routing backend](https://www.liedman.net/leaflet-routing-machine/tutorials/alternative-routers/) yourself. I am sorry to say that, to my knowledge, there is no good default.\n\n## Support and New Features\n\nLeaflet Routing Machine is in many ways already a feature complete routing UI. Most likely, your requirements are already covered and require very little adaptation.\n\nFor questions and discussions, you might want to look at [the Leaflet Routing Machine gitter](https://gitter.im/leaflet-routing-machine/Lobby).\n\n## Building\n\n```sh\nnpm install\n```\n\nThis requires [Node and npm](http://nodejs.org/), as well as `grunt`.\n\n# Usage\n\nDownload [latest release](https://github.com/perliedman/leaflet-routing-machine/releases), or obtain the latest release via [unpkg.com](https://unpkg.com/).\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/leaflet-routing-machine@3.2.12/dist/leaflet-routing-machine.css\" /\u003e\n\u003cscript src=\"https://unpkg.com/leaflet-routing-machine@3.2.12/dist/leaflet-routing-machine.js\"\u003e\u003c/script\u003e\n```\n\nor via npm:\n\n```sh\nnpm install --save leaflet-routing-machine\n```\n\n```javascript\nvar L = require('leaflet');\nrequire('leaflet-routing-machine');\n\n...\n```\n\nLRM attaches itself onto `L`.\n\n__Go to the [Leaflet Routing Machine site](http://www.liedman.net/leaflet-routing-machine/) for more information, demos, tutorials and more.__\n","funding_links":[],"categories":["JavaScript","others"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperliedman%2Fleaflet-routing-machine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperliedman%2Fleaflet-routing-machine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperliedman%2Fleaflet-routing-machine/lists"}