Thomas_B34
(Thomas B34)
December 10, 2023, 8:55pm
1
I’m trying to find all 2 lane roads that have any sort of advertising
.
Already able to get all 2 lane roads like this:
[out:json][bbox:{{bbox}}][timeout:800];
way["highway"~"^(residential|unclassified|tertiary|tertiary_link)$"]["lanes"="2"];
out geom meta;
Now I just need help with the advertisement part. ( Key:advertising - OpenStreetMap Wiki )
Fizzie41
(Fizzie41)
December 10, 2023, 10:01pm
2
Thomas_B34:
all 2 lane roads
You can get 2 lanes roads that are other classifications than the ones you’ve listed there e.g. primary & trunk. In fact, they would probably be more likely to have advertising billboards on them!
simo_fi
(Simo Fi)
December 22, 2023, 3:45pm
3
you can try with this:
[out:json][bbox:{{bbox}}][timeout:60];
node[advertising]->.adv;
way(around.adv:100)["highway"~"^(residential|unclassified|tertiary|tertiary_link)$"]["lanes"="2"];
out geom meta;
maybe 100 meters is too much?
it also works without using the set .adv
node[advertising];
way(around:100)["highway"]["lanes"="2"];
out geom;