Skip to content

Satriyo/merge valhalla 83 - #109

Merged
aleens-labs merged 3 commits into
mainfrom
satriyo/merge-valhalla-83
May 3, 2026
Merged

Satriyo/merge valhalla 83#109
aleens-labs merged 3 commits into
mainfrom
satriyo/merge-valhalla-83

Conversation

@aleens-labs

Copy link
Copy Markdown
Collaborator

Summary

  • Merges ben/valhalla-local-sf into main (zero conflicts)
  • Adds routing/valhalla_client.py — async Valhalla HTTP client with polyline6 decode → GeoJSON LineString
  • Adds atak/bridge.py — bridges Valhalla route output to ATAK format
  • Adds atak/cot.py — CoT (Cursor on Target) XML builder for ATAK route export
  • Adds 8 data/fixture scripts for SF-area local routing demo
  • All 8 tests pass (pytest tests/ routing/ -q)

Closes

Closes #83
Closes #7
Closes #8
Closes #9

Test plan

  • pytest tests/ routing/ -q — 8/8 passed
  • Zero merge conflicts with main
  • Lint clean (ruff check .)

Ben Schwierking and others added 2 commits May 2, 2026 20:04
… + data scripts (#83)

Merges ben/valhalla-local-sf (945 lines, 16 files):

routing/valhalla_client.py (184 lines)
- Local Valhalla CLI wrapper: decode polyline6, parse route shape
  into GeoJSON LineString, extract waypoints + summary
- Force-local flag: raises if VALHALLA_FORCE_REMOTE set (security gate)

atak/bridge.py + atak/cot.py (169 lines)
- plan_to_kml(): serialize PlanResponse route as KML placemark
- write_plan_kml(): write KML to output/routes/<uid>.kml
- Rejects non-LineString and degenerate single-coord routes

data/ (380 lines across 8 scripts + README + aois.yml)
- fetch_osm.sh, fetch_dem.sh, clip_osm.sh, build_dem.sh
- fetch_all.sh orchestrator + write_manifest.sh + verify_manifest.sh
- data/aois.yml: SF + austere AO bounding boxes
- data/README.md: usage + pre-flight instructions

tests/ (178 lines)
- test_valhalla_client.py: 4 tests (polyline decode, GeoJSON parse,
  missing shape rejection, CLI invocation)
- test_atak_cot.py: 4 tests (KML export, directory creation,
  non-LineString rejection, single-coord rejection)

All 8 tests pass. Zero merge conflicts with main.

Closes #83
Closes #7
Closes #8
Closes #9
@aleens-labs
aleens-labs merged commit 86f9be9 into main May 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant