Lògo d'OpenStreetMap OpenStreetMap

Getting streets and nodes without name tags with Overpass turbo

Postat per Rodrigo Rega a 18 de març 2016 en English Darriera actualizacion de 20 de març 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.

Luòc : Lugo, Casco Vello, Lugo, Galicia, Spain
Email icon Bluesky Icon Facebook Icon LinkedIn Icon Mastodon Icon Telegram Icon X Icon

Discussion

Comentari de mvexel lo 22 de març 2016 a 00:51

Nice!

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

Connectatz-vos per ajustar un comentari