Description Usage Arguments Details Value References Examples
get_stops
processses a response object from a pubtrans_ch_nearby call to the walkalytics
pubtrans API.
Returns the nearby public tansportation stops, ordered by walking time.
1 |
pubtrans_ch_nearby |
a response object from a pubtrans_ch_nearby call to the |
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.
A data.frame
(tibble::tibble
) that contains:
name
name of the public tansportation stop (station).
walktime
estimated walking time from the starting point to the station in minutes.
station_category
category of the station, ranging from high to low service frequency (1 to 5; unassigned >= 90).
latitude
latitude of the station.
longitude
longitude of the station.
coordinates_type
type of geodetic system.
transport_category
type of station.
id
official ID of the station.
Walkalytics API documentations
1 | pubtrans_ch_nearby(x = 8.05, y = 47.3, key = "abcd1234") %>% get_stops()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.