How jamesk1281/sundaydrive works
Sunday Drive builds a scenic road-routing service and a native iOS navigation app. Its data workflow turns open map and terrain inputs into scenic scores and a routable graph; the API then serves destination routes and scenic loops. In the app, drivers plan or choose a loop, compare route trade-offs, and navigate with live location, rerouting, and voice guidance. The README documents the pipeline and API flow; source excerpts and the index support selected internal links. Unsampled app capabilities are represented without guessing their call paths.
Main entry points: app.py Routing API · RouteService.swift Route API client · NavigationModel.swift Live navigation · graph.py Road graph build
Components 24
Scenic data
- Road extraction
pipeline/extract.py - Terrain relief
pipeline/elevation.py - Tree cover
pipeline/landcover.py - Scenic scoring
pipeline/score.py - Road graph build
pipeline/graph.py - Road closures
pipeline/closures.py
Routing service
- Route search
pipeline/router.py - Scenic loop planning
pipeline/looper.py - Route preferences
pipeline/options.py - Routing API
server/app.py
iOS app
- Trip planning
ios/Sources/PlanningView.swift - Region coverage
ios/Sources/NewEngland.swift - Region boundary
ios/Sources/NewEnglandBoundary.swift - Route API client
ios/Sources/RouteService.swift - Live navigation
ios/Sources/NavigationModel.swift - Location updates
ios/Sources/LocationManager.swift - Voice guidance
ios/Sources/VoiceGuide.swift - Voice selection
ios/Sources/VoiceCatalogue.swift
Drive measurement
- Drive recording
ios/Sources/DriveTrace.swift - Trace analysis
tools/analyze_trace.py
Other components
- OpenStreetMap data
- Terrain tiles
- Processed graph data
- Driver
Connections 25
- OpenStreetMap data → Road extraction: supplies roads
README.md - OpenStreetMap data → Scenic scoring: scoring input
README.md - Terrain tiles → Terrain relief: supplies tiles
README.md - Road extraction → Road graph build: road data
README.md - Terrain relief → Road graph build: relief raster
README.md - Tree cover → Scenic scoring: tree cover
README.md - Scenic scoring → Road graph build: scored chunks
README.md - Road graph build → Processed graph data: writes graph
README.md - Road closures → Processed graph data: writes closures
README.md - Processed graph data → Route search: loads graph
README.md - Route search → Routing API: route search
README.md - Scenic loop planning → Route search: uses routing
pipeline/looper.py - Routing API → Scenic loop planning: plans loops
server/app.py - Routing API → Route preferences: uses preferences
server/app.py - Driver → Trip planning: chooses trip
- Trip planning → Route API client: requests routes
- Region coverage → Region boundary: checks boundary
ios/Sources/NewEngland.swift - Route API client → Routing API: sends requests
README.md - Routing API → Route API client: returns routes
README.md - Route API client → Live navigation: fetches reroutes
ios/Sources/NavigationModel.swift - Location updates → Live navigation: provides fixes
- Live navigation → Voice guidance: drives guidance
ios/Sources/NavigationModel.swift - Live navigation → Voice selection: selects voice
ios/Sources/NavigationModel.swift - Driver → Drive recording: rates road
README.md - Drive recording → Trace analysis: analyzes traces
tools/analyze_trace.py