Walk Score

GRATUITO
Por API Guy | Atualizado 4日前 | Mapping
Popularidade

9 / 10

Latência

622ms

Nível de serviço

100%

Health Check

N/A

LEIA-ME

See https://www.walkscore.com/professional/api.php

This API returns the Walk Score, Transit Score and Bike Score for any location.

Programmers can use the API to:

  • Integrate Walk Score into your site
  • Add Walk Score to your property listings
  • Enable searching and sorting by Walk Score
  • The Walk Score API is supported in the United States, Canada, Australia, and New Zealand.

API Examples


The Walk Score API as used on Zillow.com


Show the Walk Score and Transit Score of millions of properties every day.

Drop down menu that uses Walk Score as a real estate search criteria
Allow your visitors to search and sort apartments by Walk Score.

Getting Started

To start using the API, request an API key.

The Walk Score API will return the following:

{
"status": 1 
, "walkscore": 98
, "description": "Walker's Paradise"
, "updated": "2016-11-17 04:40:31.218250" 
, "logo_url": "https://cdn.walk.sc/images/api-logo.png"
, "more_info_icon": "https://cdn.walk.sc/images/api-more-info.gif"
, "more_info_link": "https://www.walkscore.com/how-it-works/"
, "ws_link":
"https://www.walkscore.com/score/1119-8th-Avenue-Seattle-WA-98101/lat=47.6085/lng=-122.3295/?utm_source=walkscore.com&utm_medium=ws_api&utm_campaign=ws_api"
, "help_link": "https://www.walkscore.com/how-it-works/"
, "snapped_lat": 47.6085
, "snapped_lon": -122.3295 
, "transit" : {"score": 100, "description": "Rider's Paradise", "summary": "115 nearby routes: 103 bus, 6 rail, 6 other"} 
, "bike" : {"score": 68, "description": "Bikeable"} 
}

The Walk Score API takes the following parameters:

Parameter Description Required
lat The latitude of the requested location. Yes
lon The longitude of the requested location. Yes
address The URL encoded address. Yes
wsapikey Your Walk Score API Key. Contact us to get one. Yes
transit Set transit=1 to request Transit Score (if available). No
bike Set bike=1 to request Bike Score (if available). No
format Return results in XML or JSON (defaults to XML). No
The Walk Score API returns an XML or JSON response containing:

Result Description
status Status code of the result (see information below).
walkscore The Walk Score of the location.
description An English description of the Walk Score. E.G. Somewhat Walkable.
updated When the Walk Score was calculated.
logo_url Link to the Walk Score logo.
more_info_icon Link to question mark icon to display next to the score.
more_info_link URL for the question mark to link to.
ws_link A link to the walkscore.com score and map for the point.
help_link A link to the “How Walk Score Works” page.
snapped_lat All points are “snapped” to a grid (roughly 500 feet wide per grid cell). This value is the snapped latitude for the point.
snapped_lon The snapped longitude for the point.
The returned logo_url and more_info_icon URLs are https links, but may also be accessed via http.

If the request to the API fails entirely (network timeout, error response, etc.), this option can be used with a link to the Walk Score homepage instead (www.walkscore.com).

All of these requirements are implemented in our sample code.

Walk Score API Status and Error Codes

Successful API requests return an HTTP 200 response with the following status codes:

HTTP Response Status Code Description
200 1 Walk Score successfully returned.
200 2 Score is being calculated and is not currently available.
404 30 Invalid latitude/longitude.
500 series 31 Walk Score API internal error.
200 40 Your WSAPIKEY is invalid.
200 41 Your daily API quota has been exceeded.
403 42 Your IP address has been blocked.
Contact us for tech support.

Seguidores: 13
Recursos:
Site do produto
API Creator:
Rapid account: API Guy
API Guy
theapiguy
Efetuar login para classificar API
Avaliação: 5 - Votos: 1