R/zzz.R

Defines functions .onLoad .onAttach

.onAttach <- function(libname, pkgname) {
  packageStartupMessage("Data: (c) OpenStreetMap contributors, ODbL 1.0 - http://www.openstreetmap.org/copyright")
  packageStartupMessage("Routing: OSRM - http://project-osrm.org/")

  # options(osrm.server = "http://0.0.0.0:5000/", osrm.profile = "driving")
}

.onLoad <- function(libname, pkgname) {
  options(osrm.server = "https://routing.openstreetmap.de/", osrm.profile = "car")
  # options(osrm.server = "http://0.0.0.0:5000/", osrm.profile = "driving")
}

Try the osrm package in your browser

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

osrm documentation built on May 29, 2024, 9:29 a.m.