ߏߔߌ߲ߛߑߕߙߌߕߑߡߊߔ ߛߌ߲ߞߐ߲ OpenStreetMap

Getting highways without parking lanes tag with Overpass turbo

ߊ߬ ߟߊߦߟߍ߬ߣߍ߲߬ ߦߋ߫ Rodrigo Rega ߓߟߏ߫ 14 March 2016 ߦߋ߫ English ߟߋ߬ ߘߐ߫ ߟߊ߬ߞߎ߬ߘߦߊ߬ߟߌ߬ ߞߐߟߕߊ 18 March 2016 ߘߐ߫

I am working in add parking lanes in the highways of Lugo city. For ease the job of locating all the ways that are without the needed tags, I wrote a little Overpass turbo query, after this I load the data it in JOSM to do the tagging.

highways without parking lanes tag

This is the Overpass query:

[out:xml][timeout:25];

// filter out ways without right or left parking lanes
(
way["highway"]["parking:lane:left"!~".*"]({{bbox}});
way["highway"]["parking:lane:right"!~".*"]({{bbox}});
);

// filter out ways with both parking lanes
( ._; - way["highway"]["parking:lane:both"~".*"]({{bbox}}); );

// filter out other type of ways 
( ._; - way[highway="pedestrian"]({{bbox}}); );
( ._; - way[highway="footway"]({{bbox}}); );
( ._; - way[highway="path"]({{bbox}}); );
( ._; - way[highway="steps"]({{bbox}}); );
( ._; - way[highway="crossing"]({{bbox}}); );
( ._; - way[service="parking_aisle"]({{bbox}}); );

// print results
out meta;
>;
out meta qt;
ߘߌ߲߬ߞߌߙߊ: Lugo, Casco Vello, Lugo, Galicia, Spain
Email icon Bluesky Icon Facebook Icon LinkedIn Icon Mastodon Icon Telegram Icon X Icon

Discussion

ߡߙߌߣߊ߲ ߞߊ߬ ߝߘߊ߫ Diomas ߟߊ߫ 17 March 2016 at 14:36 ߘߐ߫

also highway=crossing can be mapped as a way (a line connecting two sidewalks lines that crosses road highway line in highway=crossing node), so you should exclude it as well

ߡߙߌߣߊ߲ ߞߊ߬ ߝߘߊ߫ Rodrigo Rega ߟߊ߫ 18 March 2016 at 16:02 ߘߐ߫

Done, thank you Diomas.

ߌ ߜߊ߲߬ߞߎ߲߫ ߞߊ߬ ߛߋ߫ ߡߙߌߣߊ߲ ߦߌ߬ߘߊ߬ ߟߊ߫