getTS {walkscoreAPI} | R Documentation |
Transit Score API Call
Description
A function to perform the basic Transit Score API call.
Usage
getTS(x, y, city, state, key)
Arguments
x |
longitude of query location (numeric) |
y |
latitude of query location (numeric) |
city |
name of core city where the query location is located (string) |
state |
postal abriviation of query location's state (string) |
key |
your Walk Score API key (string) |
Details
The Transit Score API call only works in supported cities. Use the functions "checkTSsupport" or "getTScities" to check for support in the city of interest. Also note that calls should use the core city name, even when the query location is technically in a suburb of the core city.
Value
Returns an object of class TransitScore
, basically a list of the following elements:
transitscore |
Transit Score of query location. |
url |
Link to Walk Score page associated with your query. |
description |
Qualitative description of query location regarding transit. |
summary |
Summary of nearby routes and stops. |
Note
Visit www.walkscore.com for information on Walk Score and to obtain an API key
Author(s)
John Whalen
References
http://www.walkscore.com/professional/public-transit-api.php
See Also
Examples
## Not run:
getTS(-73.98496,40.74807,"New York","NY","your key")
## End(Not run)