Description Usage Arguments Details Value Note Author(s) References Examples
A function to preform the "Walking Distance" API Call.
1 | walkshed(x, y, key)
|
x |
longitude of query location (numeric) |
y |
latitude of query location (numeric) |
key |
your Walk Score API key (string) |
The "Walking Distance" API call returns the geometry of a polygon which bounds network walking distance from the given origin point.
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. |
Visit www.walkscore.com for information on Walk Score and to obtain an API key
John Whalen
http://www.walkscore.com/professional/public-transit-api.php
1 2 3 4 | ## Not run:
walkshed(-122.335,47.5815,"your key")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.