simonepri / country-iso

🗺 Get the ISO 3166-1 alpha-3 country code from geographic coordinates.
MIT License
144 stars 9 forks source link

extent for cities? #7

Closed musicformellons closed 6 years ago

musicformellons commented 6 years ago

This looks very nice! Will try it in a project soon!

I was wondering: how difficult is it to extent this for cities? So results will be land & city (if any)?

simonepri commented 6 years ago

The big problem is that we have to map each relation on OpenStreetMap. I've done it manually for the countries in the osm-countries repo but doing it for every city is infeasible.

musicformellons commented 6 years ago

Yeah, I noticed. Great work! I looked around some time ago for a library that could go from coordinates to country (and city) name, but could not find anything close. Now you made it, thanks a lot!