[openstreetmap/openstreetmap-website] Serve only trackable and identifiable points and add cursor pagination to the trackpoints API (PR #7322)
Ruben L. Mendoza
notifications at github.com
Thu Sep 10 17:28:34 UTC 2026
Rub21 left a comment (openstreetmap/openstreetmap-website#7322)
After a conversation with Minh, I checked which clients call the `trackpoints` API. Here are the results.
- JOSM: [`pointsPerPage = 5000`](https://github.com/JOSM/josm/blob/1b1d53f148/src/org/openstreetmap/josm/io/BoundingBoxDownloader.java#L58-L60), stops when a page has fewer than 5,000 points.
- Merkaartor: [loop over pages](https://github.com/openstreetmap/merkaartor/blob/04449ee36f/src/Sync/DownloadOSM.cpp#L400-L402), stops on an empty page.
iD, Rapid, Vespucci and StreetComplete do not download trackpoints from the API.
None of them reads HTTP headers, so I think the `Link` header does not affect them. We kept the `page` mode in this PR working as before, until the clients migrate to the cursor.
cc. @1ec5
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7322#issuecomment-5622755423
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7322/c5622755423 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260910/d3d593a5/attachment.htm>
More information about the rails-dev
mailing list