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: Valhalla - valhalla.github.io/valhalla")
}

.onLoad <- function(libname, pkgname) {
  if (is.null(getOption("valh.server"))){
    options(valh.server = "https://valhalla1.openstreetmap.de/")
  }
}

Try the valh package in your browser

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

valh documentation built on April 11, 2025, 6:14 p.m.