Download complete map (highway,ways) of Pakistan and complete nodes from overpass-turbo.eu in geojson format

Viewed 464

I am not a native english speaker so please ignore my mistakes.

I want to download complete map (highway,ways) of Pakistan and complete nodes from overpass-turbo in geojson format.

I already downloaded one city data but when I went to download complete country map, it gave me a error.

Here how I download one city.

1.I select a area form overpass-turbo and select highway and type = way just before run a query which is shown below enter image description here

  1. When I click on build and run query, after a while it looks like

enter image description here

3.So Data is ready for export, when I click on export it gives me option to download data as a geojson extension type which is..

enter image description here

  1. I downloaded and used my data,

NOW problem is that when I go to download complete country data it gives me error which is enter image description here

I also increases query time but I don't know what is the problem.

Please help me to solve this problem.

Link where I am downloading map

https://overpass-turbo.eu/

1 Answers

Overpass API is the wrong source for downloading complete countries. Overpass API can be used for downloading small data extracts. All highways of a specific country are probably just too much.

As an alternative use a country or area extract. Afterwards filter the data for specific tags by using the tags-filter option from osmium-tool. Alternative software for filtering are osmosis and osmfilter.

The following osmium command should extract all ways with a highway tag from the raw data you downloaded:

osmium tags-filter -o highways.osm.pbf pakistan.osm.pbf w/highway
Related