R/info-endpoint.R

Defines functions gh_get_info

Documented in gh_get_info

#' Get information about the GraphHopper instance
#' @example examples/api-reference/gh-get-info.R
#' @export
gh_get_info <- function() {
  httr::GET(get_api_url(), path = ENDPOINTS$info) %>%
    httr::content() %>%
    set_gh_class("gh_info")
}

Try the graphhopper package in your browser

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

graphhopper documentation built on Feb. 6, 2021, 5:05 p.m.