Description Usage Arguments Details Value Note Author(s) References See Also Examples
A function to perform the basic Transit Score API call.
1 |
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) |
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.
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. |
Visit www.walkscore.com for information on Walk Score and to obtain an API key
John Whalen
http://www.walkscore.com/professional/public-transit-api.php
1 2 3 4 | ## Not run:
getTS(-73.98496,40.74807,"New York","NY","your key")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.