]> git.openstreetmap.org Git - rails.git/commit
Remove endpoint.hasGeocode state and related getRoute code
authorAnton Khorev <tony29@yandex.ru>
Sun, 11 Aug 2024 03:58:14 +0000 (06:58 +0300)
committerAnton Khorev <tony29@yandex.ru>
Fri, 16 Aug 2024 05:53:34 +0000 (08:53 +0300)
commite624871eb4d871ac4dcfefce3c279aac32c0496d
treee70d622d4fc0a05982b7d6ac811521cd00b1f8dc
parenta0013c8f56d6d0b6eaa707741ac744c8fb9f52cc
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.
app/assets/javascripts/index/directions-endpoint.js
app/assets/javascripts/index/directions.js