Learn R Programming

walkalytics (version 0.1.0)

pubtrans_ch_nearby: Issue a walkalytics pubtrans query

Description

pubtrans_ch_nearby calls the walkalytics pubtrans API which returns nearby public tansportation stops for Switzerland.

Usage

pubtrans_ch_nearby(x, y, max_walktime = 10, key = "my_walkalytics_key")

Arguments

x

latitude of starting point.

y

longitude of starting point.

max_walktime

output filter for maximum walking time in minutes.

key

your walkalytics subscription key which provides access to the API.

Value

The response object from the request. Use get_stops to directly extract nearby public transportation stops and estimated walking times from the starting point to the stations.

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.

References

Walkalytics API documentations

Examples

Run this code
# NOT RUN {
pubtrans_ch_nearby(x = 8.0526331, y = 47.3933375, max_walktime = 10, key = "abcd1234")
# }

Run the code above in your browser using DataLab