powered by
A leaflet plugin which shows areas of reachability based on time or distance for different modes of travel using the openrouteservice isochrones API. Based on the leaflet.reachability plugin
addReachability(map, apikey = NULL, options = reachabilityOptions())
a map widget
a valid Openrouteservice API-key. Can be obtained from Openrouteservice
A list of further options. See reachabilityOptions
reachabilityOptions
the new map object
map
https://github.com/traffordDataLab/leaflet.reachability
Other Reachability Functions: reachabilityOptions(), removeReachability()
reachabilityOptions()
removeReachability()
# NOT RUN { library(leaflet) library(leaflet.extras2) Sys.setenv("OPRS" = 'Your_API_Key') leaflet() %>% addTiles() %>% setView(8, 50, 10) %>% addReachability() # }
Run the code above in your browser using DataLab