Biểu trưng OpenStreetMap OpenStreetMap

Getting streets and nodes without name tags with Overpass turbo

Do Rodrigo Rega đăng vào 18 tháng 03 năm 2016 bằng English. Cập nhật lần cuối cùng vào 20 tháng 03 năm 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.

Vị trí: Lugo, Casco Vello, Lugo, Galicia, Spain
Biểu tượng thư điện tử Biểu tượng Bluesky Biểu tượng Facebook Biểu tượng LinkedIn Biểu tượng Mastodon Biểu tượng Telegram Biểu tượng X

Thảo luận

Bình luận của mvexel vào 22 tháng 3 năm 2016 lúc 00:51

Nice!

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

Đăng nhập để nhận xét