“Ahm, Are you sure this is right?” Bob says as he sees the different ways. Uh oh!
We’ve managed to successfully query for ways of the name “Innstraße”, but unfortunately, it seems that there are actually quite a few ways that are named the same!
This is obviously unacceptable - Overpass showed us all the ways named “Innstraße” around the world, but we’re only interested in the “Innstraße” near Bob.
Since we know we Bob is in Passau, what we can do is to query for the ways that is only in Passau. Again, we use the area
query to do this.
area
that has the tag key name
and tag value Passau
. Remember that our area needs to be placed before our way query, otherwise the area
won’t flow to the way filter.node(area);