OpenStreetMap

Getting streets and nodes without name tags with Overpass turbo

Posted by Rodrigo Rega on 18 March 2016 in English. Last updated on 20 March 2016.

In my way into get better street tagging in Lugo city, I am using Overpass turbo to find what streets need to be tagged.

In a previous post I talk about getting parking lanes in highways in Overpass turbo, in this post I will show how I use Overpass turbo to get streets and POIs that are in need of some name:* tag.

In the next image we can see in blue what ways are in need of tagging, obtained with Overpass turbo: highways and nodes without name tags

For each way and node, I want to add this tags:

  • name:es=* (Name in spanish)
  • name:gl=* (Name in galician. This should be the same as “name=*”)
  • sorting_name=* (Same as “name=*”, but putting leading articles to the end)

This is the Overpass turbo query for getting streets without all street name tags that I want:

[out:xml][timeout:25];

// get ways and nodes with name
(
  way["name"]({{bbox}}); 
  node["name"]({{bbox}}); 
);

// filter out ways with all tags ok
(
  ._ - 
  	(
   	  way._["sorting_name"]({{bbox}});
   	  way._["name:gl"]({{bbox}});
   	  way._["name:es"]({{bbox}});
    );
);

// filter out nodes with all tags ok
(
  ._ - 
  	(
   	  node._["sorting_name"]({{bbox}});
   	  node._["name:gl"]({{bbox}});
   	  node._["name:es"]({{bbox}});
    );
);

// print results
out meta;
>;
out meta qt;

Once I get this data, I use the export function in Overpass turbo to load them in JOSM and start the tagging.

Location: Lugo, Casco Vello, Lugo, Galicia, Spain

Discussion

Comment from mvexel on 22 March 2016 at 00:51

Nice!

You could also make a MapRoulette challenge out of it pretty easily and have everyone help out :)

Log in to leave a comment