How a-ldnstntng/ligtas works
LIGTAS METRO is a flood-safe commute dashboard. Users search or select a Philippine corridor, view rainfall-informed inundation and passability assessments alongside flood and bypass overlays, then inspect street-level imagery or corridor telemetry. The main orchestration and dashboard live in src/App.jsx; map rendering and geometry are handled by src/components/MapViewport.jsx, while weather and imagery lookups are separate services. README capabilities not fully visible in the sampled excerpts are represented where documented; sensor telemetry implementation details are not assumed.
Main entry points: App.jsx Dashboard orchestration · MapViewport.jsx Interactive hazard map · mapillaryService.js Imagery lookup · StreetViewerModal.jsx Street viewer modal
Components 14
Dashboard workflow
- Dashboard orchestration
src/App.jsx - Location search
src/App.jsx - Inundation assessment
src/services/weatherService.js
Spatial hazards
- Interactive hazard map
src/components/MapViewport.jsx - Flood polygons
src/data/floodPolygons.json
Live data services
- Weather forecast
src/services/weatherService.js - Imagery lookup
src/services/mapillaryService.js - Curated imagery corridors
src/data/mapillaryCorridors.json
Street inspection
- Street viewer modal
src/components/StreetViewerModal.jsx - Corridor sensor telemetry
src/components/StreetViewerModal.jsx
Other components
- Commuter
- Open-Meteo
- Nominatim geocoding
- Mapillary imagery API
Connections 16
- Commuter → Location search: searches locations
- Location search → Nominatim geocoding: geocodes query
- Location search → Dashboard orchestration: submits selection
- Dashboard orchestration → Weather forecast: requests forecast
- Weather forecast → Open-Meteo: fetches weather and river data
- Dashboard orchestration → Inundation assessment: computes inundation
- Dashboard orchestration → Interactive hazard map: passes location and depth
- Interactive hazard map → Flood polygons: reads polygons
- Commuter → Interactive hazard map: inspects map
- Interactive hazard map → Dashboard orchestration: dispatches map selection
- Dashboard orchestration → Street viewer modal: opens inspection
- Dashboard orchestration → Imagery lookup: looks up nearby image
- Street viewer modal → Imagery lookup: resolves image
- Imagery lookup → Mapillary imagery API: queries image nodes
- Imagery lookup → Curated imagery corridors: checks fallback
- Street viewer modal → Corridor sensor telemetry: shows telemetry mode