How tonimwas/timeapp works
GeoSpend Kenya is a trip-planning app that helps users choose a starting neighbourhood, budget, available time, categories, and vibes, then view a ranked itinerary with spending and time summaries. The React app also provides map and route features; Django serves place data and accepts a user’s current location. Data-loading commands populate the trip domain. Source excerpts show backend routing and data access, but not the full frontend request flow or all itinerary calculations, so those connections are omitted where unverified.
Main entry points: models.py Places and transport · urls.py Trip URL routes · views.py Geo data API · load_region_data.py Region data loader
Components 15
Trip planning UI
- React entry
frontend/src/main.jsx - Trip planner
frontend/src/App.jsx
Trip API
- Trip URL routes
trips/urls.py - Frontend view
trips/views.py - Geo data API
trips/views.py - Location API
trips/views.py
Trip data
- Transport utilities
trips/utils.py - Places and transport
trips/models.py - Trip database
Data loading
- Nairobi data loader
trips/management/commands/load_nairobi_data.py - Region data loader
trips/management/commands/load_region_data.py - Place JSON loader
trips/management/commands/load_simple_places.py - Sample data loader
trips/management/commands/seed_sample_data.py
Other components
- Traveler
- Directions service
Connections 16
- Traveler → React entry: uses
- React entry → Trip planner: renders
frontend/src/main.jsx - Trip planner → Directions service: requests directions
- Trip URL routes → Frontend view: routes home
trips/urls.py - Trip URL routes → Geo data API: routes geo data
trips/urls.py - Trip URL routes → Location API: routes location
trips/urls.py - Geo data API → Places and transport: reads places
trips/views.py - Geo data API → Transport utilities: calculates transport
trips/views.py - Location API → Transport utilities: reverse geocodes
trips/views.py - Location API → Places and transport: creates place
trips/views.py - Places and transport → Trip database: persists records
trips/models.py - Nairobi data loader → Places and transport: creates records
trips/management/commands/load_nairobi_data.py - Region data loader → Places and transport: creates records
trips/management/commands/load_region_data.py - Region data loader → Nairobi data loader: delegates Nairobi load
trips/management/commands/load_region_data.py - Place JSON loader → Places and transport: creates places
trips/management/commands/load_simple_places.py - Sample data loader → Places and transport: creates sample records
trips/management/commands/seed_sample_data.py