Interface Between R and the OpenStreetMap-Based Routing Service OSRM
Overview
An interface between R and the 'OSRM' API. 'OSRM' is a routing service based on 'OpenStreetMap' data. See https://project-osrm.org/ for more information. This package enables the computation of routes, trips, isochrones and travel distances matrices (travel time and kilometric distance).
Major change
- use kilometers for distances in all functions and add a once-per-session
message about this breaking change affecting osrmNearest(), osrmTable() and
osrmIsodistance()
Fix
- return an error on input coordinates containing NA, NaN or Inf values
(#141 thanks to @neon-ninja)
- harmonize the accuracy of results to the meter for distances and to one
decimal place of a minute for durations in all functions (#137)
Feat
- add snapping distance to results in osrmTable(), osrmRoute() and osrmTrip()
(#136 thanks to @e-kotov)
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 7includes a package overview page
- Examples that run
- 0%6 never run
- Exported functions with examples
- 100%
- Documented parameters
- 91%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
Stars over time
Releases over time
Issues over time
- github.com/riatelab/osrm · last recorded on 2026-10-01
Repository codeberg.org/riatelab/osrm is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.
Dependencies
Installing osrm adds 17 packages (14 with compiled code, 29 MB of source tarballs). Heaviest: sf 9.3 MB, googlePolylines 4.9 MB, RcppSimdJson 3.2 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 6.0.0Latest
- RR 4.6.0 released · 2026-04-24
- 5.0.0
- RR 4.5.0 released · 2025-04-11
- 4.2.02024-05-06 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 4.1.1
- 4.0.0
- RR 4.2.0 released · 2022-04-22
- 3.5.12022-01-24 · diff ↗
- 3.5.02021-09-27 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 3.4.12021-03-19 · diff ↗
- 3.4.02020-12-09 · diff ↗
- RR 4.0.0 released · 2020-04-24
Show 18 earlier eventsHide 18 earlier events
- 3.3.3
- 3.3.22019-09-30 · diff ↗
- 3.3.12019-07-12 · diff ↗
- 3.3.02019-04-29 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 3.2.02019-01-24 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 3.1.12018-03-12 · diff ↗
- 3.1.02017-11-13 · diff ↗
- 3.0.22017-08-10 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 3.0.12017-04-03 · diff ↗
- 3.0.02016-05-09 · diff ↗ ·
removed 2 exports
osrmViaroute, osrmViarouteGeomadded 3 exports
osrmIsochrone, osrmRoute, osrmTrip - RR 3.3.0 released · 2016-05-03
- 2.0.0
- 1.12015-11-06 · diff ↗
- 1.02015-09-30
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2015-09-30
- Total releases
- 22 / 11 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 445 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("osrm")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.21105/joss.04574.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.