How someshwar-prox/geoai-v2 works
GeoAI Outdoor Assistant is a FastAPI backend that turns an outdoor-activity question into a location-aware recommendation: the API submits the question to the pipeline, which parses intent, gathers geospatial and environmental context, scores venue-and-hour options, generates an explanation, and verifies it. Context gathering covers geocoding, venues and hazards, weather, air quality, routes, daylight, and hiking elevation. Source adapters share cached, rate-limited HTTP and circuit-breaker support. Relationships shown are those evidenced by the README or excerpts; unsampled source behavior is not inferred.
Main entry points: context.py Context gathering · base.py Source cache and resilience · pipeline.py Recommendation pipeline · airquality.py Air quality
Components 21
API
- FastAPI endpoints
app/main.py
Recommendation workflow
- Recommendation pipeline
app/pipeline.py - Intent parsing and explanation
app/slm.py - Response verification
app/verifier.py
Context and scoring
- Context gathering
app/context.py - Exposure scoring
app/exposure_engine.py
Data sources
- Geocoding
app/sources/geocode.py - Venue and hazard search
app/sources/overpass.py - Weather forecast
app/sources/weather.py - Air quality
app/sources/airquality.py - Travel times
app/sources/routing.py - Daylight
app/sources/daylight.py - Elevation
app/sources/elevation.py
Source infrastructure
- Runtime settings
app/config.py - Source cache and resilience
app/sources/base.py
Other components
- Outdoor user
- OpenStreetMap services
- Open-Meteo
- OSRM
- WAQI
- Astral
Connections 31
- Outdoor user → FastAPI endpoints: asks
app/main.py - FastAPI endpoints → Recommendation pipeline: runs question
app/main.py - FastAPI endpoints → Context gathering: gathers context
app/main.py - Recommendation pipeline → Intent parsing and explanation: parses and explains
app/pipeline.py - Recommendation pipeline → Context gathering: gathers data
app/pipeline.py - Recommendation pipeline → Exposure scoring: scores options
app/pipeline.py - Recommendation pipeline → Response verification: verifies answer
app/pipeline.py - Context gathering → Geocoding: geocodes location
app/context.py - Context gathering → Venue and hazard search: finds venues and hazards
app/context.py - Context gathering → Weather forecast: fetches forecast
app/context.py - Context gathering → Air quality: fetches air quality
app/context.py - Context gathering → Travel times: gets travel times
app/context.py - Context gathering → Daylight: gets daylight
app/context.py - Context gathering → Elevation: gets hiking elevation
app/context.py - Exposure scoring → Venue and hazard search: scores venue data
app/exposure_engine.py - Geocoding → Source cache and resilience: uses fetch support
app/sources/geocode.py - Venue and hazard search → Source cache and resilience: uses fetch support
app/sources/overpass.py - Weather forecast → Source cache and resilience: uses fetch support
app/sources/weather.py - Air quality → Source cache and resilience: uses fetch support
app/sources/airquality.py - Travel times → Source cache and resilience: uses fetch support
app/sources/routing.py - Daylight → Source cache and resilience: uses fetch support
app/sources/daylight.py - Elevation → Source cache and resilience: uses fetch support
app/sources/elevation.py - Source cache and resilience → Runtime settings: reads settings
app/sources/base.py - Geocoding → OpenStreetMap services: queries Nominatim and Photon
app/sources/geocode.py - Venue and hazard search → OpenStreetMap services: queries Overpass
app/sources/overpass.py - Weather forecast → Open-Meteo: fetches forecast
- Air quality → Open-Meteo: fetches forecast
app/sources/airquality.py - Air quality → WAQI: optional bias correction
app/sources/airquality.py - Travel times → OSRM: requests travel table
README.md - Daylight → Open-Meteo: tries sunrise and sunset
app/sources/daylight.py - Daylight → Astral: fallback calculation
app/sources/daylight.py