geographer icon indicating copy to clipboard operation
geographer copied to clipboard

Ability to get all cities from country

Open vitalybaev opened this issue 8 years ago • 4 comments

Hi, maybe I didn't investigated, but is there an ability to directly get cities within a country? The problem is that some small countries doesn't have states, so I couldn't get cities for this country.

Thanks!

vitalybaev avatar Apr 06 '17 10:04 vitalybaev

@vitalybaev hmm, one possibility would be setting the standard to Geonames - these countries still have Geonames cities. Looking at the data files, it would be quite easy to get all cities for a country directly, I may just implement it

dusterio avatar Apr 07 '17 02:04 dusterio

@vitalybaev do you have examples of country without states ?

chriys avatar Aug 11 '17 14:08 chriys

@vitalybaev did you find a solution about how to get all cities for a single country?

vellmur avatar Oct 04 '17 14:10 vellmur

@vitalybaev now I need to find some city by name, if I have a country. Now I can find only region by name. Can you please give recommendation where better to add code for getting all cities for a single country? Better with search option (id, name, code), because data is too big.

vellmur avatar Oct 04 '17 14:10 vellmur