Learn R Programming

walkscoreAPI (version 1.2)

getTS: 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)

Value

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.

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.

References

http://www.walkscore.com/professional/public-transit-api.php

See Also

getWS

Examples

Run this code
## Not run: 
# getTS(-73.98496,40.74807,"New York","NY","your key")
# ## End(Not run)

Run the code above in your browser using DataLab