Hi Ryan, You are correct that you should be able to do this using the /geo/search request. There is a known issue at the moment that POIs are always returned, making it hard to find city matches. We have a fix that's being tested now for that. If you want to file this on the issue tracker http://code.google.com/p/twitter-api/issues/list we'll update it once the fix is deployed.
Hope that helps, Matt On Wed, Jun 30, 2010 at 10:01 PM, Ryan W <rwilli...@gmail.com> wrote: > I was working with the place search method: > > > http://api.twitter.com/1/geo/search.json?query=Portland,%20OR&granularity=city > > But, I'm only getting place results with type = poi > > What's the preferred way to get the place id of a city? > > > I was able to get it with a lat/long: > > > http://api.twitter.com/1/geo/reverse_geocode.json?lat=45.5234515&long=-122.6762071&granularity=city > > http://api.twitter.com/1/geo/search.json?lat=45.5234515&long=-122.6762071&granularity=city > > But, I was trying to see if I could get it with a string search. > > Thanks! > -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris