walkshed {walkscoreAPI} | R Documentation |
Return Walk Shed
Description
A function to preform the "Walking Distance" API Call.
Usage
walkshed(x, y, key)
Arguments
x |
longitude of query location (numeric) |
y |
latitude of query location (numeric) |
key |
your Walk Score API key (string) |
Details
The "Walking Distance" API call returns the geometry of a polygon which bounds network walking distance from the given origin point.
Value
Returns an object of class "Walkshed", which is basically a list with the following elements:
status |
A code which tells the status of the request. The table of status codes can be found on the Walk Score API site. A status of 1 means a successful request. |
origin |
Latitude and longitude of the walkshed center. |
geometry |
Geometry type of walkshed. |
coordinates |
List of walkshed polygon vertexes, returned as a data frame with two columns. |
radius |
Network distance in miles. |
snappedLong |
longitude to which the input was snapped to. |
snappedLat |
latitude to which the input was snapped to. |
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
Examples
## Not run:
walkshed(-122.335,47.5815,"your key")
## End(Not run)