Vehicle profiles (Car, Camper, ...), avoid tolls/motorways, per-country vignette and toll km for a route
CI / check (push) Successful in 19s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-11-14 21:20:23 +01:00
1 parent 58ca871662
commit 69aa284e36
8 files changed
+328 -80

No files matched your search

+19 -6
View File
@@ -121,6 +121,7 @@
<button type="button" data-action="save" hidden>Save to library</button>
</div>
<p class="route-panel__summary"></p>
<ul class="route-panel__countries" hidden></ul>
<button type="button" class="route-panel__profile" hidden>Elevation profile</button>
<details class="route-panel__directions" hidden>
<summary>Directions</summary>
@@ -138,12 +139,24 @@
<button type="button" data-action="reach-clear" hidden>Hide</button>
</div>
<p class="route-panel__reach-status" hidden></p>
<fieldset class="route-panel__vehicle">
<legend>Vehicle</legend>
<label>Height <input type="number" name="height" step="0.1" min="1" max="6"> m</label>
<label>Width <input type="number" name="width" step="0.1" min="1" max="4"> m</label>
<label>Length <input type="number" name="length" step="0.5" min="2" max="25"> m</label>
<label>Weight <input type="number" name="weight" step="0.1" min="0.5" max="60"> t</label>
<div class="route-panel__vehicle-row">
<label>Vehicle <select class="route-panel__vehicle-select"></select></label>
<button type="button" data-action="vehicle-edit" hidden>Edit</button>
</div>
<div class="route-panel__avoid">
Avoid
<label><input type="checkbox" name="tolls"> tolls</label>
<label><input type="checkbox" name="highways"> motorways</label>
</div>
<fieldset class="route-panel__vehicle" hidden>
<label class="route-panel__vehicle-name">Name <input type="text" name="name" maxlength="40"></label>
<label>Height <input type="number" name="height" step="0.1" min="1" max="6" placeholder="–"> m</label>
<label>Width <input type="number" name="width" step="0.1" min="1" max="4" placeholder="–"> m</label>
<label>Length <input type="number" name="length" step="0.5" min="2" max="25" placeholder="–"> m</label>
<label>Weight <input type="number" name="weight" step="0.1" min="0.5" max="60" placeholder="–"> t</label>
<p class="route-panel__vehicle-hint">Empty: no limit. Over 3.5 t routes as a truck.</p>
<button type="button" data-action="vehicle-add">+ New vehicle</button>
<button type="button" data-action="vehicle-delete">Delete</button>
</fieldset>
</div>
</div>