How sioodmy/kilometr works
Kilometr is an offline-first public-transit planner for mobile, with routing performed on-device from downloaded timetable data. The main journey runs from app launch and city/data setup through place search and RAPTOR route results; users can then view maps, track live trips, and receive alerts. Other documented capabilities include saved places, history, backup, MPK news, and language settings. The graph emphasizes the mobile product and its data/runtime layers; the README establishes several capabilities whose internal wiring was not sampled, so those links are left out rather than inferred.
Main entry points: engine.ts Route calculation · app/index.tsx Home and onboarding · routes/index.tsx Route planner UI · SearchSheet.tsx Place search
Components 19
Mobile app
- Home and onboarding
app/index.tsx - Route planner UI
app/routes/index.tsx - Place search
src/components/SearchSheet.tsx
Timetable data
- City selection
src/services/cityStore.ts - Timetable import
src/services/dataManager.ts - Local GTFS database
src/services/gtfsDatabase.ts - Persistent key-value storage
src/services/storage.ts
Journey planning
- Routing index
src/services/routing/store.ts - Route calculation
src/services/routing/engine.ts - RAPTOR engine
modules/kilometr-raptor/rust/src/trip_engine.rs
Live journey tools
- Vehicle tracker
src/services/liveTracker.ts - Trip monitoring
src/services/notifications/tripMonitor.ts - Route and navigation maps
app/map.tsx
Personal features
- Saved places and history
src/components/SavedPlacesRow.tsx - File backup
src/services/backup.ts - MPK news
src/services/mpkNews.ts - Settings and languages
src/services/settings.ts
Other components
- Rider
- Transit live feeds
Connections 21
- Rider → Home and onboarding: starts
README.md - Home and onboarding → Timetable import: checks timetable
app/index.tsx - Home and onboarding → City selection: selects city
app/index.tsx - City selection → Persistent key-value storage: persists choice
src/services/cityStore.ts - Timetable import → Local GTFS database: imports data
src/services/dataManager.ts - Rider → Place search: enters places
README.md - Place search → Route planner UI: sets endpoints
app/routes/index.tsx - Rider → Route planner UI: requests routes
README.md - Route planner UI → Route calculation: requests routing
app/routes/index.tsx - Route calculation → Routing index: loads timetable index
src/services/routing/engine.ts - Routing index → Local GTFS database: reads timetable
src/services/routing/store.ts - Route calculation → RAPTOR engine: runs search
src/services/routing/engine.ts - Route calculation → Vehicle tracker: uses live delays
src/services/routing/engine.ts - Vehicle tracker → Transit live feeds: polls positions
src/services/liveTracker.ts - Rider → Route and navigation maps: views route map
README.md - Rider → Trip monitoring: tracks a trip
README.md - Rider → Saved places and history: saves places
README.md - Rider → File backup: backs up data
README.md - Rider → MPK news: reads updates
README.md - Rider → Settings and languages: chooses language
README.md - Settings and languages → Persistent key-value storage: persists preferences