valh

CRAN R build status codecov Project Status: Active – The project has reached a stable, usable state and is being actively developed.

Interface Between R and the OpenStreetMap-Based Routing Service Valhalla

Description

Valhalla is a routing service that is based on OpenStreetMap data. This package provides an interface to the Valhalla API from R. It allows you to query the Valhalla API for routes, isochrones, time-distance matrices, nearest point on the road network, and elevation data.

This package relies on the usage of a running Valhalla service (tested with v3.4.x-3.5.x of Valhalla).

Features

Installation

# install.packages("remotes")
remotes::install_github("riatelab/valh")

Motivation & Alternatives

The package is designed to provide an easy-to-use interface to the Valhalla routing service from R. Special care has been taken to support multiple input formats, and the package treats sf objects as first-class citizens in both input and output. Additionally, we have tried to maintain a minimal number of dependencies.

This package offers an API that closely resembles that of the osrm package which provides an R interface to the OSRM routing service.

Note that there are other packages that provide an interface to Valhalla API from R :

Community Guidelines

One can contribute to the package through pull requests and report issues or ask questions here. See the CONTRIBUTING.md file for detailed instructions.