mwagnerrvsbr-droid created an issue (openstreetmap/openstreetmap-website#7196)
### URL
https://www.openstreetmap.org/directions?engine=fossgis_osrm_car&route=;49.236424,6.992487
### How to reproduce the issue?
### Summary
The "Use current location" button in the directions page does not populate the
start location correctly.
The current location is successfully obtained (blue location marker is
displayed on the map), but the start field is filled with "undefined,
undefined" instead of the current coordinates or address.
### Steps to reproduce
1. Open the directions page, for example:
https://www.openstreetmap.org/directions?engine=fossgis_osrm_car&route=;49.236424,6.992487
2. Grant location permission if requested.
3. Press the green "Use current location" button.
### Expected behavior
The current location should be inserted as the route origin and routing should
work normally.
### Actual behavior
The start field becomes:
undefined, undefined
The blue location marker is displayed correctly on the map, so the browser
successfully provides the current position.
### Tested on
- iPhone (Safari)
- Android (Chrome)
The issue occurs on both platforms.
### Additional information
Initially I suspected that the problem was caused by my own application, which
links to the OSM directions page.
However, I was able to reproduce the issue directly on openstreetmap.org using
the URL above, without involving my application.
The issue occurs regardless of whether:
- the `from` parameter is omitted,
- the destination is specified using the `route` parameter,
- the destination is specified using the `to` parameter.
This suggests that the problem is related to the "Use current location"
functionality in the directions page rather than to the URL parameters.
### Screenshot(s) or anything else?
<img width="590" height="1278" alt="Image"
src="https://github.com/user-attachments/assets/8b4ce910-5d71-4e6f-be4d-d932f0de3c86"
/>
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/7196
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev