networkSearch {walkscoreAPI} | R Documentation |
Network Search
Description
A function to perform the Network Search API call.
Usage
networkSearch(x, y, key)
Arguments
x |
longitude of query location (numeric) |
y |
latitude of query location (numeric) |
key |
your Walk Score API key (string) |
Details
gives information about all routes and all stops within a mile radius of a query location. This function returns a very data-rich object with details on every stop and every route included in this radius.
Value
Returns an object of class NetworkSearch
, which has two elements: first is $routelist, which is a list of objects of class Route
, and second is $stoplist, which is a list of objects of class Stop
.
routelist |
List of routeID, route name, route catagory, maintaining agency, agency website, and stops served by the route. |
stoplist |
List of stopID, stop name, stop latitude, stop longitude, and a list of routes which use the stop. |
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:
networkSearch(-73.98496,40.74807,"your key")
## End(Not run)