[openstreetmap/openstreetmap-website] Add PWA geo protocol handler (PR #5736)
Anton Khorev
notifications at github.com
Fri Mar 14 16:10:30 UTC 2025
@AntonKhorev commented on this pull request.
> mapParams = {};
+ [geoURI.coordstring, ...geoURI.params] = geoURI.pathname.split(";");
+ geoURI.params = Object.fromEntries([...geoURI.searchParams, ...geoURI.params.flatMap(l => [...new URLSearchParams(l)])]);
If you're going to parse all RFC 5870 parameters, see https://github.com/openstreetmap/openstreetmap-website/pull/5736#discussion_r1979882902 again. `URLSearchParams` is not going to work in general, try this for example `geo:48.858249,2.294541;skip=lol&z?z=19`.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5736#pullrequestreview-2686050874
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5736/review/2686050874 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250314/898680b8/attachment.htm>
More information about the rails-dev
mailing list