mirror of
https://github.com/zvx-echo6/navi.git
synced 2026-08-26 17:31:37 +00:00
Replaces the 3-tier vehicle-only discriminator with a per-endpoint eligible-mode-set intersection: - CATEGORY_ELIGIBLE_MODES maps OSM key:value (and key:* wildcards) to eligible modes; _eligible_modes_from_category resolves a hint, or None when untyped. - Untyped endpoints fall back to _spatial_eligible_modes: parallel Valhalla /locate (auto/pedestrian/bicycle) + 3-tier snap/road-class rules (vehicle needs paved, and paved+flat in the 5-100m grace zone; atv paved/track; mtb paved/track/path; foot always). - _route_auto intersects both endpoints eligible sets, probes AUTO_MODE_PRIORITY within it, and adds selected_mode + selected_mode_set. Both untyped endpoints resolve in parallel. - _locate_on_network now returns road_class. - api_offroute accepts optional start_category/end_category and forwards them (auto only). Frontend: requestOffroute takes startCategory/endCategory; computeRoute passes routeStart/routeEnd.category; startDirections preserves place.category. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| docs | ||
| public | ||
| src | ||
| .gitignore | ||
| deploy.sh | ||
| eslint.config.js | ||
| index.html | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| vite.config.js | ||
navi
Navi — self-hosted navigation web frontend for Echo6