Answer the question
In order to leave comments, you need to log in
How to parse city coordinates?
I have a large number of city names that I successfully received through vk api. My task is that for these cities I need coordinates, country, and region (if any). People who know parsing, tell me where you can parse this data ?
Api maps like geopy, geocoder will not help because there is a limit on requests per day, and a database of cities for several million names. right side plz
Answer the question
In order to leave comments, you need to log in
Try pulling data from the openstreetmap database.
A snapshot of their database is available for free.
Here is a thing to import into posgtres. I must say that in addition to it, there is also osm2pgsql , which does about the same thing.
On the OSM Wiki , you can find tags that mark city points. And then you, perhaps, will not need your list of names, they are all (these cities) there, and in several languages.
By the way , there was even a question about filtering on this resource.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question