Learn R Programming

walkscoreAPI (version 1.2)

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

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.
  • routelistList of routeID, route name, route catagory, maintaining agency, agency website, and stops served by the route.
  • stoplistList of stopID, stop name, stop latitude, stop longitude, and a list of routes which use the stop.

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.

References

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

See Also

stopDetails,routeDetails

Examples

Run this code
networkSearch(-73.98496,40.74807,"your key")

Run the code above in your browser using DataLab