[openstreetmap/openstreetmap-website] Add notes feed description for unspecified area (PR #4214)

Anton Khorev notifications at github.com
Fri Sep 1 14:34:56 UTC 2023


You can get a feed of notes unrestricted by any bounding box: https://api.openstreetmap.org/api/0.6/notes/feed

It's not entirely clear if this is planned. The query runs rather slow, the [wiki](https://wiki.openstreetmap.org/wiki/API_v0.6#RSS_Feed:_GET_/api/0.6/notes/feed) shows `bbox` as required, but the requirement was dropped more than ten years ago.

If it is supposed to work, the description element in the feed is going to look strange. It refers to an area and has slots for bounding box lat/lon, but since the area is undefined, the slots are empty:

    <description>A list of notes, reported, commented on or closed in your area [(|) -- (|)]</description>

This PR adds another description string for feeds of all notes without area restrictions.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/4214

-- Commit Summary --

  * Add notes feed description for unspecified area

-- File Changes --

    M app/views/api/notes/feed.rss.builder (6)
    M config/locales/en.yml (1)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/4214.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4214.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4214
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4214 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230901/4148d0d3/attachment.htm>


More information about the rails-dev mailing list