README.md

osrm.backend

Lifecycle:
experimental CRAN
status CRAN/METACRAN Total downloads CRAN/METACRAN Downloads per month osrm.backend status
badge R-CMD-check pkgcheck Codecov test
coverage

DOI

The goal of osrm.backend is to be a companion to {osrm} R package https://github.com/riatelab/osrm:

Installation

Install the latest stable release of osrm.backend from CRAN with:

install.packages("osrm.backend")

You can install the development version of osrm.backend from R Universe with:

install.packages('osrm.backend',
 repos = c('https://e-kotov.r-universe.dev', 'https://cloud.r-project.org')
)

or from GitHub repo with:

# install.packages("pak")
pak::pak("e-kotov/osrm.backend")

You can prepare the OpenStreetMap data for routing with one function osrm_start(<path_to_osm_file_or_folder_with_osm_file>), set the osrm.server option to http://localhost:5001/ and use all the {osrm} functions as usual. You do not need to have osrm-backend installed or have Docker to run osrm-backend from a container, everything is handled automatically an all major operating systems. Just follow the Get started guide. For advanced control over each step of the process, see the full function reference.

OSRM Graphical User Interface demo

osrm GUI demo
1

osrm GUI demo
2

osrm GUI demo
3



Try the osrm.backend package in your browser

Any scripts or data that you put into this service are public.

osrm.backend documentation built on April 26, 2026, 9:06 a.m.