[openstreetmap/openstreetmap-website] Search and latlon/nominatim query resources (PR #5868)
Tom Hughes
notifications at github.com
Mon Mar 31 10:14:23 UTC 2025
@tomhughes commented on this pull request.
> + const params = new URLSearchParams;
+ for (const paramName of ["query", "zoom", "minlon", "minlat", "maxlon", "maxlat"]) {
+ const paramValue = this.elements[paramName].value;
+ if (paramValue) {
+ params.set(paramName, paramValue);
+ }
+ }
+ const search = params.get("query") ? `/search?${params}` : "/";
That's actually from #5863 that this is build on top of, so maybe best discussed there.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5868#discussion_r2020765738
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5868/review/2728824643 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250331/98e47724/attachment.htm>
More information about the rails-dev
mailing list