Description Usage Arguments Details Value References Examples
isochrone_pois
calls the walkalytics
isochrone API which calculates the walking times from a source location
and to a given set of points-of-interest (POIs).
1 2 | isochrone_pois(x, y, epsg = 3857, max_min = 1000, pois,
key = "my_walkalytics_key")
|
x |
x-coordinate of the source location (coordinate system is WGS/84 Pseudo Mercator). |
y |
y-coordinate of the source location (coordinate system is WGS/84 Pseudo Mercator). |
epsg |
EPSG code for coordinate system of the x- and y-coordinate. |
max_min |
maximum number of minutes for the isochrone. |
pois |
a
|
key |
your |
To get an API key, you need to register at https://dev.walkalytics.com/signin. With the free starter account, you can make up to 100 calls a week to the API.
The response object from the request. Use pois_walktimes to directly extract the walking times between the source location and the points-of-interest.
Walkalytics API documentations
1 2 3 4 5 6 7 8 | # Generate set of POIs
x <- c(895777, 896044, 895639)
y <- c(6004833, 6004886, 6005147)
id <- c("pupil1", "pupil2", "pupil3")
pupils <- data.frame(x = x, y = y, id = id)
# Issue query
isochrone_pois(x = 895815, y = 6004839, pois = pupils, key = "abcd1234")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.