Integrating with Mobile Websites
To integrate the Mobile Neighborhood Map into your mobile website:
- Link directly to http://www.walkscore.com/score/<URL encoded address>
- Or use /score/loc/lat=<val>/lng=<val> for lat/lng specification
- Use the nav=back parameter to provide navigation back to your site.
- Set the wsid parameter to your Walk Score ID (WSID).
- [Optional] To start on the list view rather than the map, include a tab=list parameter.
For example:
Our /score/ URLs automatically serve a rich mobile experience to modern devices (iPhone and Android > 2.1) and a simple HTML experience to older devices. You may link directly to the rich mobile experience with /m/ or to the simple HTML experience with /s/. For example:
- Rich mobile experience:
http://www.walkscore.com/m/score/1018-Lombard-Street-San-Franciso-CA/wsid=<your-wsid> - Simple HTML mobile experience:
http://www.walkscore.com/s/score/1018-Lombard-Street-San-Franciso-CA/wsid=<your-wsid>
Integrating with iPhone and Android Apps
The Mobile Neighborhood Map can be embedded into iPhone apps with the UIWebView control and Android apps using the WebView control.
For example (iPhone):
NSURL *url = [NSURL URLWithString:[[[@"http://www.walkscore.com/m/score/"
stringByAppendingString:yourAddress]
stringByAppendingString:@"/nav=none/wsid="]
stringByAppendingString:yourWSID]];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[yourWebViewObj loadRequest:requestObj];
