Learn R Programming

walkscoreAPI (version 1.2)

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

Value

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.

Details

The "Walking Distance" API call returns the geometry of a polygon which bounds network walking distance from the given origin point.

References

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

Examples

Run this code
## Not run: 
# walkshed(-122.335,47.5815,"your key")
# ## End(Not run)

Run the code above in your browser using DataLab