Shortest Paths and Travel Time from OpenStreetMap via an OSRM API
An interface between R and the OSRM API.
OSRM is a routing
service based on OpenStreetMap data. See <http://project-osrm.org/> for more
information. This package allows to compute routes, trips, isochrones and
travel distances matrices (travel time and kilometric distance).
osrmTable
Get travel time matrices between points.
osrmRoute
Get the shortest path between two points.
osrmTrip
Get the travel geometry between multiple unordered points.
osrmIsochrone
Get polygons of isochrones.
This package relies on the usage of a running OSRM service (tested with
version 5.23.0 of the OSRM API).
To set the OSRM server, change the osrm.server
option:options(osrm.server = "http://address.of.the.server/")
To set the profile, use the osrm.profile
option:options(osrm.profile = "name.of.the.profile")
The "car" profile is set by default. Other possible profiles are "foot" and "bike".
A typical setup, corresponding to the Docker example, would be:options(osrm.server = "http://0.0.0.0:5000/", osrm.profile = "car")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.