This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to write an overpass request to get all the ways without name:en tag in a country?

0
2

Hello Everyone,

I am trying to download all the trunks, motorways and primary ways that don't have name:en tag in Iran. Can someone help me write a query that can download these data from OSM server?

Thanks.

asked 03 Sep '16, 07:12

Adib%20Yz's gravatar image

Adib Yz
291101219
accept rate: 0%

edited 03 Sep '16, 14:33


One Answer:

3

What you need is the Overpass-API Negation operator.

Here is an example for trunk roads. BEWARE it returns a lot of data, so it may be better to run through Overpass rather than Overpass-Turbo, or change the area constraint to limit the query to individual provinces.

answered 03 Sep '16, 13:15

SK53's gravatar image

SK53 ♦
28.1k48268433
accept rate: 22%

6

BTW: we've changed the negation in the most recent release 0.7.53 to make it a bit more user friendly:

Instead of ["name:en"!~"."] you can now also write [!"name:en"]

This will be available on overpass-api.de in the near future.

(03 Sep '16, 13:49) mmd

Source code available on GitHub .