Marwin Hochfelsner
cdacfafd11
Further usage of URLSearchParams
2025-02-09 08:17:13 +01:00
Holger Jeromin
c855d86bf8
Mark valid usecases for alert
2025-02-06 08:35:50 +01:00
Tom Hughes
8f7f02b025
Merge remote-tracking branch 'upstream/pull/5064'
2025-02-02 12:44:27 +00:00
Marwin Hochfelsner
4b6b49801c
Add coordinate precision function
2025-02-02 01:37:07 +01:00
Anton Khorev
147b3f05d8
Cache "not found" reverse geocoding results
2024-09-08 10:39:19 +03:00
Anton Khorev
a1051b418e
Swap cached reverse geocodes when reversing directions
...
Do this instead of putting reversed input values into url.
2024-09-08 10:38:53 +03:00
Anton Khorev
cbf53088a2
Cache last reverse geocoding result
...
Otherwise selecting "Directions from here" and then "Directions to here" results in two reverse-geocoding request for the starting point.
2024-09-08 10:38:53 +03:00
Anton Khorev
79158c50e9
Reverse-geocode on endpoint marker drag end
2024-09-08 10:38:53 +03:00
Anton Khorev
ce42b685b2
Reverse-geocode when coordinates are passed to endpoint.setValue
2024-09-08 10:38:53 +03:00
Anton Khorev
bb9a8958fb
Remove latlng parameter from endpoint.setValue
2024-09-08 10:31:10 +03:00
Anton Khorev
d9b09046f2
Abort geocoding requests if endpoint value changes
2024-09-08 10:31:10 +03:00
Anton Khorev
1e9603c7b1
Remove endpoint/input values on disable
2024-08-21 11:43:26 +03:00
Anton Khorev
4f3576e91b
Save lat/lon to input data attributes
2024-08-20 14:55:29 +03:00
Anton Khorev
b4925d7b0d
Limit coordinate precision in drag listener
2024-08-20 14:55:29 +03:00
Anton Khorev
5a1e3e5c67
Replace geocode request boolean property with request object
2024-08-19 20:30:51 +03:00
Anton Khorev
a8838b3727
Remove endpoint markers in disable method
2024-08-19 20:30:51 +03:00
Anton Khorev
64da05f8ff
Install endpoint listeners using enable/disable methods
2024-08-19 20:30:51 +03:00
Anton Khorev
89a35fe11f
Make getGeocode a private function
2024-08-16 08:57:39 +03:00
Anton Khorev
51cbbe6d5a
Move empty value check out of endpoint.getGeocode
2024-08-16 08:54:23 +03:00
Anton Khorev
e624871eb4
Remove endpoint.hasGeocode state and related getRoute code
...
hasGeocode didn't actually indicated if an endpoint has a value acquired from a geocoder. It was set to true when at least one call to a geocoder finished successfully, including getting an empty result. getRoute doesn't need to know what calls were made, it only needs coordinates. It also doesn't get to decide when to fetch coordinates, this is done in drag/change callbacks.
2024-08-16 08:53:34 +03:00
Anton Khorev
ec6789920c
Rename geocodeCallback to changeCallback, call it from latlon setValue
...
endpoint.setValue always calls changeCallback on its successful completion, with geocoding or without. This allows to decide when to call getRoute entirely from callbacks and event listeners.
2024-08-15 12:00:31 +03:00
Anton Khorev
f1ca64ff84
Make setLatLng a private function
2024-08-14 05:11:56 +03:00
Anton Khorev
f65593651f
Don't set input value from endpoint.setLatLng()
...
This input value computed from coordinates is not always used. endpoint.getGeocode() overwrites it immediately.
2024-08-14 05:11:56 +03:00
Anton Khorev
415f497d89
Move endpoints code to its own module
2024-08-10 06:19:32 +03:00