Allow reverse search, where you find the farthest start point from a given end point

This commit is contained in:
Martin Asprusten
2025-07-05 17:06:52 +02:00
parent 2ca8a14d8f
commit dc2e8170a4
6 changed files with 170 additions and 90 deletions
+7
View File
@@ -32,6 +32,9 @@
<br />
<button id="search-button">Start search</button>
<button id="export-route-button">Export KML route</button>
<br />
<label for="reverse-search-input">Reverse search:</label><input type="checkbox" id="reverse-search-input" />
<br />
<p id="search-status-paragraph"></p>
<table id="search-result-table" style="display: none;">
<thead>
@@ -80,6 +83,10 @@
end points are shown as purple circles. Click an endpoint to see the calculated route that leads from the start point
to the end point.
</p>
<p>
It is also possible to reverse the search, to find the farthest start point from a given end point. When this is done,
farthest possible start point is shown in green, and other candidate start points are shown in orange.
</p>
<p>
It is possible to mark areas on the map you would like to avoid. Click the "Draw areas that should not be
entered" button at the top left of the map. It is marked with this icon: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="20px"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --> <path d="M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"/></svg>.