Description Usage Arguments Details Value References Examples
isochrone
calls the walkalytics
isochrone API which calculates the walking isochrone for a source location.
The repsonse object contains a base64-encoded raster file, containing 4 classes (as PNG file, this is default) or
the actual travel times in seconds for every pixel (as a gzipped Esri ASCII grid). If a set of points-of-interest (POIs)
is given, the duration time for walking from the source location to each POI is calculated.
1 2 3 |
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. |
raw_data |
if |
pois |
a
|
only_pois |
if |
break_values |
a vector of break values (walking time in minutes) for the classification of the PNG result. |
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 esri_to_sgdf, pixel_walktimes, save_png, or pois_walktimes to process the response.
Walkalytics API documentations
1 | isochrone(x = 895815, y = 6004839, key = "abcd1234")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.