A function to perform the basic Walk Score API call.
Usage
getWS(x, y, key)
Arguments
x
longitude of query location (numeric)
y
latitude of query location (numeric)
key
your Walk Score API key (string), see Details below
Value
WalkScore, basically a list of the following elements:
status
Status code of the request. Status of 1 indicates a successful call. See the Walk Score API page for interpretation of other codes.
walkscore
Walk Score of query location.
description
Qualitative description of location.
updated
Date and time of most recent update to this location's Walk Score.
snappedLong
grid point longitude to which the input was snapped to.
snappedLat
grid point latitude to which the input was snapped to.
Details
Note that the call uses longitude and latitude coordintes and not addresses like the website interface. It is strongly recomended that Google Geolocation is used to convert addresses to coordinates because this is the method used by the Walk Score website, and will result in the same Walk Score as entering the address into the website interface. The function "geoloc" in this package is a tool for using the Google Geolocation API.