Learn R Programming

walkscoreAPI (version 1.2)

stopSearch: Stop Search

Description

A function to preform the Stop Search API Call.

Usage

stopSearch(x, y, key)

Arguments

x
longitude of query location (numeric)
y
latitude of query location (numeric)
key
your Walk Score API key (string)

Value

stopID
A unique ID for the particular stop, which can be used to get additional info about that stop.
stopName
Name of the particular stop.
stopDistance
Distance to the query location, in miles.
stopLong
Longitude of the particular stop.
stopLat
Latitude of the particular stop.
routeDetails
Object of class "RouteDetails", which lists the route id, name, catagory, and agency of the orute served at the stop.

Details

The Stop Search API Call returns the sixteen closest stops to a query location which service unique routes.

References

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

See Also

stopDetails, networkSearch

Examples

Run this code
## Not run: 
# stopSearch(-73.98496,40.74807,"your key")
# ## End(Not run)

Run the code above in your browser using DataLab