“Woah, great! I see a lot of nodes around me, but there are too many, and I’m not sure which are the restaurants!”
We used the around
filter on our previous example to query for nodes around our particular node, and it worked! As you can see on the map viewer, we see the OSM data around our first statement.
However, it’s quite problematic - we haven’t actually found any restaurants, and there are too many nodes!
Again, we will use the concept that we learned earlier to further filter our data. around
gave us a bunch of nodes, so we need to use filter by tag ([k=v]) to filter it to only restaurants.
Go ahead and combine our around
filter with our by tag
filter!
around
filter gave us a bunch of nodes around our first node, but there are no restaurants in it, and there are too many nodes![amenity=restaurant]
for this.