R/obsolete/isochrone-response.R

Defines functions make_isochrone

make_isochrone <- function(resp) {
  feature_collection <- list(
    type = "FeatureCollection", features = resp$polygons
  ) %>%
    toJSON_st_read()
  # list(
  #   polygons = toJSON_st_read(feature_collection)
  # )
}
crazycapivara/graphhopper-r documentation built on July 19, 2021, 1:16 p.m.