On Thu, Feb 19, 2009 at 1:40 PM, Martin Sarsale <[email protected]> wrote: > On Thu, Feb 19, 2009 at 5:35 PM, Rhett Garber <[email protected]> wrote: >> On Thu, Feb 19, 2009 at 10:30 AM, Martin Sarsale >> <[email protected]> wrote: >>> Now, I'm not too sure what is the natural id of the Place documents: >>> the place name is an option, but probably there's going to be more >>> than one place with the same name. Any hints? >> >> I'm a little biased, and this has nothing to do with couchdb, >> but I might recommend using the Yelp API for your businesses. If you >> use the Phone number API >> (http://www.yelp.com/developers/documentation/phone_api) you can a lot >> of good 'place' metadata as well >> as a unique id. > > YELP API looks good, but unfortunately (not!) there're other countries > on earth apart from US and I happen to live in one of those :) > anyway, using the phone # for ID sounds good, maybe I could add a prefix?
True. It should also support UK and Canada, but that's still a pretty limited set. You could also generate some pseudo random id (or let couchdb generate one) and use a view and whatever criteria you want to find already created locations. Rhett
