Skip to content

Interface Between R and the OpenStreetMap-Based Routing Service OSRM

1packages dependsuggested by 3
25.8Kdownloads / year
31.0%test coverage
13/13flavors OK

Overview

About

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).

Changes in 6.0.0

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

CRAN checks
13OK
Slowest check: 1.5 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 6.0.0
READMEYes · 962 wordsVignettesNoNEWSYes · 100% structured · mentions 6.0.0Citation fileYes · cites a publicationWebsiteYes
Cites a JOSS paper
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

25.8K
CRAN downloads in the past year
Rank #2,908 · ~71/day · ~2.2K/mo
Daily download trend is not available in this view yet.
2.1K30 days
4.8K90 days
25.8K1 year
Compare downloads with other packages →
Also on278 r2u6 autocran136 c2d4u

Repository

Responsiveness
not measured

Stars over time

2025-09-11 · 2452025-10-28 · 247
Earlier repositories
PracticesBeta

Repository codeberg.org/riatelab/osrm is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.

How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Suggested by 3
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (5)
Maintainer since 1.0 (2015), Author
Contributor · added in 3.0.0
Contributor · added in 6.0.0
Contributor · added in 3.4.0
Contributor · added in 3.0.0
Releases (22)

Pick two releases to compare their code metrics.

  • 6.0.0Latest
    record
    2026-10-02 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 5.0.0
    record
    2025-12-17 · diff ↗ ·
    removed 1 export
    osrmIsometric
  • R
    R 4.5.0 released · 2025-04-11
  • 4.2.0
    record
    2024-05-06 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 4.1.1
    record
    2023-03-30 · diff ↗ ·
    added 1 export
    osrmNearest
  • 4.0.0
    record
    2022-10-20 · diff ↗ ·
    added 1 export
    osrmIsodistance
  • R
    R 4.2.0 released · 2022-04-22
  • 3.5.1
    record
    2022-01-24 · diff ↗
  • 3.5.0
    record
    2021-09-27 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 3.4.1
    record
    2021-03-19 · diff ↗
  • 3.4.0
    record
    2020-12-09 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
Show 18 earlier eventsHide 18 earlier events

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
Appears in task views

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for osrm version 6.0.0 [Data set]. HJJB, LLC. Data release v2026-10-20. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy