pois_walktimes: Extract walking times to points-of-interest

Description Usage Arguments Details Value References Examples

View source: R/isochrone_pois.R

Description

pois_walktimes processses a response object from a isochrone_pois call to the walkalytics pubtrans API. Returns walking times from the source location to the given points-of-interest, ordered by walking time.

Usage

1

Arguments

isochrone_pois

a response object from a isochrone_pois call to the walkalytics isochrone API.

Details

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.

Value

A data.frame (tibble::tibble) that contains:

References

Walkalytics API documentations

Examples

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") %>% pois_walktimes()

walkalytics documentation built on April 23, 2018, 5:04 p.m.