# perliedman/leaflet-routing-machine

Control for routing in Leaflet

Repository: https://github.com/perliedman/leaflet-routing-machine
Canonical: https://ross.abutalabs.com/products/leaflet-routing-machine
Homepage: https://www.liedman.net/leaflet-routing-machine/
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2024-03-11T13:35:19+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4595, "days_push": 905, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1183, forks 365 (observed 2026-08-28T04:03:54.501346+00:00)

## What it is
A Leaflet plugin that adds turn-by-turn routing controls to interactive maps, supporting multiple routing backends like OSRM and Mapbox Directions API. It provides waypoint editing, itinerary display, and customizable UI with Leaflet's look and feel.

## Use cases
- add driving directions to a Leaflet map
- let users drag waypoints to plan a route
- show turn-by-turn itineraries on a web map
- integrate OSRM routing into a web application
- build a trip planner with start and destination inputs
- display route lines between multiple stops on a map

## When to choose
- you are already using Leaflet and need routing UI
- you want a quick, few-lines-of-code routing control
- you need support for multiple routing engines via plugins
- you want customizable waypoint editing and theming

## When to avoid
- you need actively maintained software with timely bug fixes
- you want a routing solution with a working default backend out of the box
- you are not using Leaflet for your maps
- you need routing in a mobile native app rather than a web map

## Facets
- artifact type: plugin
- maturity: maintenance
- function: routing, geospatial, ui-components
- domain: web-development, frontend, travel
- platform: browser
- tags: leaflet, routing, osrm, mapbox, waypoints, directions, openstreetmap, maps, javascript

## Member repositories
- perliedman/leaflet-routing-machine (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:54.501346+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:24:37.902420+00:00, confidence not recorded.
  - readme: https://github.com/perliedman/leaflet-routing-machine (fetched 2026-08-28T04:03:54.501346+00:00, sha df8d212b66e0)
  - homepage: https://www.liedman.net/leaflet-routing-machine/ (fetched 2026-08-29T12:31:31.613344+00:00, sha e57287200ec3)
  - registry_npm: https://registry.npmjs.org/leaflet-routing-machine (fetched 2026-08-29T12:31:31.625120+00:00, sha 72ce0d78446e)
  - site_page: https://www.liedman.net/leaflet-routing-machine/api (fetched 2026-08-29T12:31:31.622752+00:00, sha efdac3c5de3e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
