getTS: Transit Score API Call

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

A function to perform the basic Transit Score API call.

Usage

1
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

getWS

Examples

1
2
3
4
## Not run: 
getTS(-73.98496,40.74807,"New York","NY","your key")

## End(Not run)

walkscoreAPI documentation built on May 2, 2019, 3:41 p.m.