You aren't signed in     Sign In    Help

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

Dopplr place googlemaps, with and without Yahoo Geo API bounding box adjustment by Matt Biddulph.
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?) 

Comments

view profile

George  Pro User  says:

Yahoo! Nice one, Matt :)
Posted 18 months ago. ( permalink )

view profile

Dominik Schwind  Pro User  says:

Not bad.
Actually the places.q-function of the Yahoo Geo API also takes latitude and longitude as an parameter, so there would be no need to use the Flickr API, too.
Posted 18 months ago. ( permalink )

view profile

Matt Biddulph  Pro User  says:

Dominik, what's the format of places.q to make a lat/long query, and where is that documented? Sounds useful.
Posted 18 months ago. ( permalink )

view profile

Dominik Schwind  Pro User  says:

Hm, I thought it worked with just places.q(lat,long) - but a test just now didn't confirm that.
Sorry, looks like I was mistaken, I guess my memory was fooling me after playing around too much with the FireEagle API.
But then the Yahoo Geo API should really have that feature. ;)
Posted 18 months ago. ( permalink )

Would you like to comment?

Sign up for a free account, or sign in (if you're already a member).

[?]
view photos Uploaded on May 17, 2008
by Matt Biddulph

Matt Biddulph's photostream

2,145
uploads

This photo also belongs to:

Most Interesting 2008 (Set)

48
items

Tags

Additional Information

AttributionShare Alike Some rights reserved Anyone can see this photo

Add to your map