G
G
GuF_20192020-02-18 15:00:45
Google
GuF_2019, 2020-02-18 15:00:45

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

3 answer(s)
S
Sergey Pankov, 2020-02-18
@trapwalker

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.

R
RocknRoolla, 2020-02-18
@RocknRoolla

via wikipedia you can do it5e4bd31c61e27873443127.png

P
pfg21, 2020-02-18
@pfg21

use openstreetmap, luk !!
there is a free nominatim geocoder in osm, study its api
https://nominatim.openstreetmap.org/search.php?q=%...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question