Why not ask your question on the new OpenStreetMap Community Forum?


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?


asked 03 Sep '16, 07:12

Adib%20Yz's gravatar image

Adib Yz
accept rate: 0%

edited 03 Sep '16, 14:33

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.

permanent link

answered 03 Sep '16, 13:15

SK53's gravatar image

SK53 ♦
accept rate: 22%


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
Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 03 Sep '16, 07:12

question was seen: 23,945 times

last updated: 03 Sep '16, 14:33

powered by OSQA