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

Anton Khorev notifications at github.com
Thu Aug 15 08:33:29 UTC 2024


@AntonKhorev pushed 15 commits.

94c343121a060acbc6472f0e1c2d5502792be6ae  Remove latlng parameter from endpoint.setValue
8031d8b4149d1354bae90bb0dc9a0a562b563704  Rename geocodeCallback to changeCallback, call it from latlon setValue
296c034e8cba9526894836578665dae5034763eb  Remove endpoint.hasGeocode state and related getRoute code
761b65cd1e7568a72cef94268ad704cc3f0453e7  Move empty value check out of endpoint.getGeocode
c9ce90b812e0a6ac86318f96d1b0431658fc04b5  Make getGeocode a private function
ff08538ca1724a711322395f3cdb300fc82c0e21  Replace geocode request boolean property with request object
cb03e9f5f6b8fba33fccf6dc70ab4f39e66f4e96  Reverse-geocode when coordinates are passed to endpoint.setValue
13530bc3a660e1d0a2c3db65ea4e96bfdc3a3e60  Abort geocoding requests if endpoint value changes
80660e8b5f7c4576b6634ca914858783e6c0b255  Reverse-geocode on endpoint marker drag end
002c000f179f454d975153e42282b12e33a95ca2  Limit coordinate precision in drag listener
615df47c32ae66f0ab76d01f82d7937cc3508fd5  Save lat/lon to input data attributes
9abb17e942e522c07b43f02dc20cd31e95c0a4c4  Read lat/lon attributes when generating context menu directions urls
b1d58392def432c1963c36a8d911e919f63e34b8  Cache last reverse geocoding result
926a90a04a79b724eedcd6dbc6726f592783e56b  Add endpoint.remove to be called from page.unload
7aef609edccdbba6860da62cae4c42feeaba8835  Swap cached reverse geocodes when reversing directions

-- 
View it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5064/files/e67139403b514ed48143ec0a3324ba12b10df8e4..7aef609edccdbba6860da62cae4c42feeaba8835
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5064/before/e67139403b514ed48143ec0a3324ba12b10df8e4/after/7aef609edccdbba6860da62cae4c42feeaba8835 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240815/6c1e6ae0/attachment.htm>


More information about the rails-dev mailing list