Add location search and polish running route planner

This commit is contained in:
Peter Stockings
2026-10-03 10:01:16 +10:00
parent 52943cd05b
commit 5ede1a01d2
7 changed files with 420 additions and 43 deletions
+13 -2
View File
@@ -1,7 +1,10 @@
# Route planner
Open **Routes** in Stride. Select the start on the map, enter latitude/longitude,
or use your location. Choose a loop or select a separate finish, distance (1–50 km),
search by typing a place/address and choosing a suggestion, or use your location.
Both start and finish support search with arrow-key/Enter selection. Suggestions
are biased towards the current map view, without restricting the search region.
Choose a loop or select a separate finish, distance (1–50 km),
hill difficulty, surface preference and ranking priority. Generated candidates show
their actual distance, ascent, route geometry, elevation profile and quality coverage.
Save a named route privately, reopen it, download GPX, or delete it.
@@ -48,7 +51,15 @@ Quality percentages follow ORS documented waytype and surface IDs:
Crossing counts, lighting, current access and live traffic are unverified.
GPX includes the route and available elevation, without fictional timestamps.
No direct Garmin course upload or place-name search is included in this version.
No direct Garmin course upload is included in this version.
Place searches use the same server-side ORS key and a fixed geocoding endpoint.
Typing waits 650 ms before searching; old responses are discarded when the query
changes. Queries are bounded to 3–200 characters with at most five results and an
eight-second provider timeout. The authenticated POST endpoint requires CSRF and
is limited to 30 searches/minute and 600/day. Provider labels are inserted as text.
Start/finish pins use self-contained CSS markers, so no external marker images
are required. Selected pins can be dragged to adjust their location.
## Persistence and validation