foursquare / fsqio

A monorepo that holds all of Foursquare's opensource projects
Apache License 2.0
252 stars 54 forks source link

Twofishes: Is it possible to list all cities in a country? #38

Open razola opened 7 years ago

razola commented 7 years ago

Hi,

If I do a query for New York City the returned data contains refrences to NYC's parents. That data allows me to traverse up and see that NYC lies in the state New York, and that the state New York lies in the US.

Now, I would like to do the opposite. That is, list all the cities in the US.

It doesn't look like Twofishes can do this, but I thought it was worth asking the question.

Thanks!

kuroshhashemi commented 7 years ago

This would be a great feature which we would use as well. The only challenge I see is that while geonames/twofishes has great parent data, you will often come across duplicates of the children going down the tree.

dorukozturk commented 7 years ago

Kind of related to this: Is it possible to do bulk geocoding? My use case requires to get multiple results but currently I am doing n rest requests for n locations. For example, is it possible to get Munich and Paris in the same request?