new icn messageflickr-free-ic3d pan white
Dopplr place googlemaps, with and without Yahoo Geo API bounding box adjustment | by Matt Biddulph
Back to photostream

Dopplr place googlemaps, with and without Yahoo Geo API bounding box adjustment

In both of these maps, SF is centred. In the top one, we have Dopplr's default zoom level of 4. Because our gazetteer (Geonames) doesn't have bounding box data, we settled on 4 as a reasonable default.

 

Happily, Yahoo's new Geo API has bounding boxes included. The lower map is a result of adding this code to the map: pastie.caboo.se/pastes/198743

 

The code makes a clientside call to the Yahoo Geo API asking for JSON data which it uses to reset the bounding box. The ID 2487956 in the URL used in that code was derived by calling the Flickr API's flickr.places.findByLatLon passing the latitude and longitude from our SF geonames record, at a resolution level of 11 (city).

 

(Note to all concerned on the Dopplr team: you're right, this makes the super-cute San Francisco pin look silly, and is arguably a loss of context. Good tech demo though, huh?)

4,388 views
5 faves
4 comments
Uploaded on May 17, 2008