Alpha stage commit

This commit is contained in:
2026-07-02 21:04:05 +02:00
parent c03b183dfb
commit abed21be21
136 changed files with 15531 additions and 15 deletions

28
packages/shared/README.md Normal file
View File

@@ -0,0 +1,28 @@
# Shared Package
Purpose: shared domain types and pure logic.
Implement here:
- domain types,
- profile thresholds,
- segment scoring,
- route scoring,
- critical gap detection,
- stage helper functions,
- GPX serialization helpers if shared with API.
Pure functions should have unit tests and deterministic fixtures.
## Implemented functions
- `scoreSegment(segment, profile)`
- `scoreRoute(route, profile)`
- `estimateHikeABikeRisk(segment, profile)`
- `filterPoisByCorridor(pois, route, filter)`
- `detectCriticalGaps(route, pois, thresholds)`
- `planStages(route, pois, tripRequest)`
- `exportRouteToGpx(route, stages, pois, options)`
- `createOfflinePackManifest(input)`
The mock trip request is kept aligned with `examples/sample_trip_request.json`; tests cover scoring, staging, POI corridor/gaps, and GPX export.