Search the web
Sign In
New User? Sign Up
yws-flickr · YDN Flickr Developer Support Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Flickr and "Place IDs"   Message List  
Reply | Forward Message #3688 of 5517 |
At Flickr we've got a really big database that lists a significant
percentage of the places that exist in the world, and a few that don't.
When you geotag a photo we try to identify the "place" (neighborhood,
village, city, county, state, or country) where the photo was taken. And
we assign that photo a "place ID".

A place ID is a globally unique identifier for a place on Earth. A city
has a place ID, so do counties, states, and countries. Even some
neighborhoods and landmarks have them, though Flickr isn't currently
tracking those. And we're starting to expose these place IDs around Flickr.

### Place IDs and flickr.photos.search()

The Flickr API method flickr.photos.search() now accepts place_id as an
argument. Along with all of the other parameters you can
search on you can now scope your search to a given place. Historically
you've been able to pass bounding boxes to the API, but calculating the
right bounding box for a city is tricky, and you can get noise and bad
results around the edge. Now you can pass a single non-ambiguous string
and get photos geotagged in San Francisco, CA, or Ohio, or Beijing.
(kH8dLOubBZRvX_YZ, LtkqzVqbApjAbJxv, and wpK7URqbAJnWB90W respectively)

The documentation has been updated at:
http://www.flickr.com/services/api/flickr.photos.search.html

### Sources of Place IDs

Place IDs are now returned from a number of source:
* flickr.photos.getInfo will return place IDs for geotagged photos
* available as a microformat on the appropriate Places page
* flickr.places.resolvePlaceURL, and flickr.places.resolvePlaceId are
available for round tripping Flickr Places URLs.

http://www.flickr.com/services/api/flickr.photos.getInfo.html
http://www.flickr.com/services/api/flickr.places.resolvePlaceURL.html
http://www.flickr.com/services/api/flickr.places.resolvePlaceId.html

### More Place IDs

Right now you can also place IDs in the places URL, and pass them to the
map like so:

* http://flickr.com/places/wpK7URqbAJnWB90W
* http://flickr.com/map?place_id=kH8dLOubBZRvX_YZ

### Place IDs elsewhere

The especially eagle-eyed among you might recognize Place IDs. Upcoming
has been quietly using them for months to uniquely identify their metros.

See events from San Francisco at:
http://upcoming.yahoo.com/place/kH8dLOubBZRvX_YZ

See photos from San Francisco at: http://flickr.com/places/kH8dLOubBZRvX_YZ

Additionally Yahoo's skunkworks project FireEagle will also support
place IDs.

And yes, there is more work to do, but we're exciting about this as a start.

Thanks,
-kellan





Fri Jan 11, 2008 11:57 pm

ykellan
Offline Offline
Send Email Send Email

Forward
Message #3688 of 5517 |
Expand Messages Author Sort by Date

At Flickr we've got a really big database that lists a significant percentage of the places that exist in the world, and a few that don't. When you geotag a...
kellan
ykellan
Offline Send Email
Jan 11, 2008
11:58 pm

Great stuff - thanks for this :) It's going to make it possible to do some really cool stuff... I just started playing around and one of the things I wanted to...
Kelvin Luck
kelvinovitch
Offline Send Email
Jan 13, 2008
12:23 pm

Sorry - speaking to myself here... I looked up the "too soomed in" URL through the API and got this: <location name="Xinzhuang" place_id="Pyouae2bAJljwthO" ...
Kelvin Luck
kelvinovitch
Offline Send Email
Jan 13, 2008
12:33 pm

Hey Kelvin, I'm glad you're playing with it. You've identified an issue with my code that translates URLs to places. I'll be fixing that. And its kind of an...
kellan
ykellan
Offline Send Email
Jan 15, 2008
1:05 am

Kellan, I've found an oddity with a place name as well: there's two "Yukon Territory" places, one at the region level (probably correct) and one at the county...
matt smillie
matthew_smillie
Offline Send Email
Jan 15, 2008
6:22 am

Hi Matt, The feedback is great. You're right this list isn't exactly the right place for it, but I'll get back to you with a place that is. Place URLs are...
kellan
ykellan
Offline Send Email
Jan 18, 2008
11:25 pm

Hi Kellan, Thanks for that. And thanks for the new flickr.places.find method too :) Cheers, Kelvin :)...
Kelvin Luck
kelvinovitch
Offline Send Email
Jan 19, 2008
10:23 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help