How drissakov/hackatonqbersgdg works
Qadam Astana helps a user choose one Astana place or event under time, location, and budget constraints. The main workflow runs from the React search form through the FastAPI API to POI recommendations or transient event search, then renders results; optional walking routes provide travel estimates. A separate OSM ingestion path acquires and normalizes POIs for trusted persistence. The graph preserves documented event discovery, database coverage, and 2GIS capabilities. Some backend orchestration is unsampled, so uncertain internal call edges are omitted.
Main entry points: App.tsx Search interface · api.py HTTP API · cli.py Ingestion workflow · discover.py Web discovery
Components 22
Search experience
- Search interface
frontend/src/App.tsx - Search form
frontend/src/components/SearchForm.tsx - Result views
frontend/src/components/ResultCard.tsx - Event views
frontend/src/components/DiscoveredEventCard.tsx - Destination details
frontend/src/components/DestinationDetails.tsx - API client
frontend/src/lib/api.ts
API and recommendations
- HTTP API
backend/app/api.py - POI recommendations
backend/app/recommend.py - POI retrieval
backend/app/retrieval.py - Walking routes
backend/app/services/twogis.py
Event discovery
- Event search
backend/app/event_recommend.py - Web discovery
backend/app/services/events/discover.py - Event normalization
backend/app/services/events/normalize.py - Event models
backend/app/services/events/models.py
POI data and ingestion
- POI repository
backend/app/repository.py - Postgres database
backend/app/database.py - OSM acquisition
ingestion/osm.py - Ingestion workflow
ingestion/cli.py - POI normalization
ingestion/normalize.py
Other components
- Astana visitor
- 2GIS services
- OpenAI services
Connections 22
- Astana visitor → Search interface: searches
README.md - Search interface → Search form: renders
frontend/src/App.tsx - Search interface → API client: requests
frontend/src/App.tsx - API client → HTTP API: calls
README.md - Search interface → Result views: renders
frontend/src/App.tsx - Search interface → Event views: renders
frontend/src/App.tsx - Search interface → Destination details: renders
frontend/src/App.tsx - HTTP API → POI recommendations: serves recommendations
README.md - HTTP API → Event search: serves event search
README.md - HTTP API → Walking routes: serves route requests
README.md - HTTP API → POI repository: reads coverage
README.md - POI recommendations → POI retrieval: uses retrieval
- Walking routes → 2GIS services: requests walking routes
README.md - Event search → Web discovery: coordinates discovery
- Web discovery → OpenAI services: searches and extracts
README.md - Web discovery → Event normalization: normalizes results
backend/app/services/events/discover.py - Event normalization → Event models: uses models
backend/app/services/events/normalize.py - POI repository → Postgres database: uses pool
backend/app/repository.py - Ingestion workflow → OSM acquisition: fetches data
ingestion/cli.py - Ingestion workflow → POI normalization: normalizes records
ingestion/cli.py - Ingestion workflow → POI repository: upserts POIs
ingestion/cli.py - POI normalization → OSM acquisition: uses source data
ingestion/normalize.py