This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

Searching for a subkey without a specific key?

0

I'm trying to find out how often the :lane subkey is used regardless of what key its attached to.

Is there a way to do this?

asked 12 Oct '18, 17:51

liceaa's gravatar image

liceaa
11112
accept rate: 0%


2 Answers:

1

This worked for me using Taginfo: ":lane" (without the quotes)

https://taginfo.openstreetmap.org/search?q=%3Alane

Cheers,

Dave

answered 12 Oct '18, 23:58

AlaskaDave's gravatar image

AlaskaDave
5.4k76107164
accept rate: 16%

0

A query like way[~".*:lane$"~".*"]; should do it. It may require some adaptation to get exactly the result you want, there's some examples in the documentation and you could consult any guide to POSIX extended regular expressions to help build the correct pattern.

answered 13 Oct '18, 13:45

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

OSZAR »