Hello, I would like to know, what is the best way to download all countries from around the world. Each country should have related regions and regions should have cities (cities with latitude and longitude). It seems to be impossible to do it using overpass turbo (too much data). Thanks for your answers.

asked 06 Mar, 09:43

avenh2's gravatar image

avenh2
11112
accept rate: 0%

1

Do you just want country boundaries and cities, or do you want more map data? Not all countries structure their internal divisions the same way.

(07 Mar, 13:29) InsertUser

I need country, region, city names. Cities should have gps coordinates.

(09 Mar, 05:56) avenh2

For countries and regions, the best source I know of is https://wambachers-osm.website/boundaries/. It’s a third party service (run by a volunteer) which offers preprocessed administrative boundaries per country and their subdivisions.

For cities one source is the Geofabrik Download service. For each country/region it offers a zip file with preprocessed layers in ESRI Shape format – look for the .shp.zip downloads. Inside you will find files gis_osm_places_free_1.* which contain points with “places”. These can be everything from cities, suburbs, towns, down to villages, hamlets and farms. So depending on your definition of “city” you may want to filter them.

If you combine these two sources, cities will not be directly connected to countries, but you should be able to link them by performing a point-in-polygon test.

permanent link

answered 11 Mar, 21:51

hfs's gravatar image

hfs
76651324
accept rate: 13%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×56
×13

question asked: 06 Mar, 09:43

question was seen: 717 times

last updated: 11 Mar, 21:51

powered by OSQA