How to identify whether a (lat,lng) is within a National Park, body of water, Theme Park, etc

There is a well known XKCD comic that describes building a look-up API to determine whether a (lat, lng) point is within a National Park. Nominatim reverse lookup helps get administrative boundaries, but does not provide additional layers such as National Parks, bodies of water (say you are out on a boat), Theme Parks, and so on. I noticed that I was unable to find a solution to this problem on Google Search results, despite being a very useful, and very well known problem category. Could someone from the community help me set up an OSMPythonTools or OverPassAPI call to perform these equivalent queries?

Problem: use OSM to query to know (lat,lng) is inside National Park, Theme Parks, etc…

Thank you!

Cross-post to Stackoverflow:

1 post - 1 participant

Read full topic


Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/how-to-identify-whether-a-lat-lng-is-within-a-national-park-body-of-water-theme-park-etc/102177