[openstreetmap/openstreetmap-website] API endpoint to tell if a point is within a moderation zone (Issue #6794)
Pablo Brasero
notifications at github.com
Wed Feb 11 11:21:24 UTC 2026
pablobm created an issue (openstreetmap/openstreetmap-website#6794)
Assuming that https://github.com/openstreetmap/openstreetmap-website/pull/6713 is merged, we'll have an issue where clients have no way to tell if they are allowed to leave a note in a specific point. If an unauthenticated user writes a long, thoughtful note, submits it, but then it fails because it was a moderation zone... they have wasted their time, if not lost their work.
We will need:
1. An API for clients to tell if the current user will be allowed to post a note in a given point. Something like `GET /api/0.6/notes/allowed?lat=X&lon=Y`.
2. The website to communicate this to users. Behind the scenes this might be by either using this new API or by leveraging its more direct access to resources (eg: the `/notes/new` endpoint could check if the note will be allowed and respond with informative content if not).
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6794
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/6794 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260211/1016251c/attachment-0001.htm>
More information about the rails-dev
mailing list