pubtrans_ch_nearby: Issue a walkalytics pubtrans query

Description Usage Arguments Details Value References Examples

Description

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

Usage

1
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.

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

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.

References

Walkalytics API documentations

Examples

1
pubtrans_ch_nearby(x = 8.0526331, y = 47.3933375, max_walktime = 10, key = "abcd1234")

walkalytics documentation built on May 2, 2019, 7:02 a.m.