[openstreetmap/openstreetmap-website] Simplify routing endpoint interface, always do reverse geocoding (PR #5064)

Nenad Vujicic notifications at github.com
Wed Aug 21 10:18:36 UTC 2024


> "2." form [#5064 (comment)](https://github.com/openstreetmap/openstreetmap-website/pull/5064#issuecomment-2285981589) - I only see one request to Nominatim happening when "Directions from/to here" is selected. I fixed something like this in [2d1cf4c](https://github.com/openstreetmap/openstreetmap-website/commit/2d1cf4c380442595d7a4629f3a4c79124277f12b) but wasn't it written before the comment?


https://github.com/user-attachments/assets/e5b3980e-4779-4104-8cc0-4b581a631ea4

If one point is valid and you change the second one, yes, there is only one request from nominatim. But, if one point is invalid and you change the second one, it will request from nominatim 2 times (once for each point).

I used the latest sources at the moment on which I applied this PR.

Thanks!

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

Message ID: <openstreetmap/openstreetmap-website/pull/5064/c2301689102 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240821/25b0b12c/attachment.htm>


More information about the rails-dev mailing list