Bicycle and foot route profiles (Valhalla bicycle/pedestrian costing); hiking trail colours in the elevation profile; power, splits and best efforts in the profile; TCX import; FIT course export
This commit is contained in:
1 parent
4c704045c5
commit
f8755ea65a
21 files changed
+634
-40
No files matched your search
@@ -208,7 +208,7 @@ phone can't skip a change.
|
||||
in `properties` — what the map draws.
|
||||
|
||||
| `POST /api/library/import`
|
||||
| Multipart upload (GPX/FIT/GeoJSON/ZIP) into a folder: stores the
|
||||
| Multipart upload (GPX/FIT/TCX/GeoJSON/ZIP) into a folder: stores the
|
||||
source, extracts items, skips items whose `fingerprint` already exists
|
||||
in that folder (re-sharing the same track from OsmAnd doesn't
|
||||
duplicate it).
|
||||
@@ -235,7 +235,20 @@ phone can't skip a change.
|
||||
`osmand:icon` → `color`/`icon` (already parsed by `Gpx.waypoint_style`).
|
||||
* Folder: the one picked in the import dialog; a GPX's own waypoint
|
||||
groups (OsmAnd's per-folder favorites export) become subfolders.
|
||||
* FIT → one track. GeoJSON → items by geometry type.
|
||||
* FIT → one track; TCX → one track per `<Activity>` (`Tcx`).
|
||||
GeoJSON → items by geometry type.
|
||||
* Heart rate, cadence, speed and power (FIT field 7, GPX `power` /
|
||||
`PowerInWatts`, TCX `Watts`) go into the profile; the profile panel
|
||||
computes splits and best efforts (fastest distances, best power over
|
||||
5 s–60 min, biggest climb) from it in the browser.
|
||||
|
||||
=== FIT course out
|
||||
|
||||
`GET /api/library/node/:key?download=fit` writes the node's first line
|
||||
as a FIT course (`FitCourse`) for Garmin/Wahoo devices: one record per
|
||||
point with distance and a timestamp spread over the line's duration (a
|
||||
4 m/s guess without one); the sport comes from the route's bicycle/foot
|
||||
profile or the track's activity type.
|
||||
|
||||
=== Locus
|
||||
|
||||
|
||||
@@ -145,6 +145,14 @@ serving swaps the tiles in, and a truck route with dimensions comes back.
|
||||
(3.0 m, 2.3 m, 7 m, 3.5 t; an older single `vehicle.json` becomes the
|
||||
camper). The route panel picks one per browser (localStorage) and sends
|
||||
its id with `/api/route` and `/api/isochrone`; Edit shows the fields.
|
||||
* A profile's `type` is `car` (also when missing), `bicycle` or `foot`.
|
||||
Bicycle uses Valhalla's `bicycle` costing (`bicycle_type`
|
||||
Road/Hybrid/Cross/Mountain, `speed` as `cycling_speed`, `hills` as
|
||||
`use_hills`); foot uses `pedestrian` (`speed` as `walking_speed`, `sac`
|
||||
as `max_hiking_difficulty`, the hardest SAC grade, `hills`). The same
|
||||
tiles serve both, no rebuild. Defaults: Bicycle, Mountain bike, Run
|
||||
(10 km/h, T2), Hike (4.5 km/h, T3); a list saved before types existed
|
||||
gets them once. Avoid and the per-country summary are car-only.
|
||||
* Avoid tolls / motorways (`"avoid": {"tolls": true, "highways": true}`)
|
||||
sets Valhalla's `use_tolls` / `use_highways` to 0 for the whole route.
|
||||
Per country isn't possible in one Valhalla request.
|
||||
|
||||
Reference in new issue
Block a user