How technologiestiftung/smartwater-infoportal works
Smartwater Infoportal is a Berlin flood-information website: residents look up an address, review building-specific hazard data, answer a risk questionnaire, and view results and guidance. Its broader capabilities include interactive hazard and scenario maps, downloadable reports, educational and accessibility content, and screenshot/API support. The address, store, and risk-calculation relationships below are supported by source excerpts or the SOURCE INDEX; map and other unsampled feature links are omitted where their wiring is not shown.
Main entry points: Results.tsx Risk results · page.tsx Portal home · FloodCheckClient.tsx Flood check flow · AddressSearch.tsx Address search
Components 27
Address lookup
- Address search
src/components/AddressSearch.tsx - Address search action
src/server/actions/searchAddresses.ts - Photon fallback
src/server/actions/searchAddressesPhotonAPI.ts - Building lookup action
src/server/actions/findAlkisBuilding.ts - GeoServer client
src/lib/geoserverClient.ts
Risk assessment
- Flood check flow
src/app/hochwasser-check/FloodCheckClient.tsx - Check questions
src/components/CheckBlock.tsx - Risk questionnaire
src/components/RiskAnalysis.tsx - Risk calculator
src/utils/floodRiskCalculator.ts - Assessment state
src/store/defaultStore.tsx - Risk results
src/components/Results.tsx - Hazard summary
src/components/RiskBlock.tsx - Risk factors
src/components/RiskFactors.tsx - Result details
src/components/ResultBlock.tsx
Maps and hazards
- Interactive hazard map
src/components/Map - Scenario map
src/components/ScenarioMap - Map configuration
src/types/map.ts
Portal features
- PDF report
src/components/Report/components/ReportPDF.tsx - Report utilities
src/components/Report/utils.ts - Screenshot endpoint
src/app/api/screenshot/route.ts - WFS cache endpoint
src/app/api/wfs-cache/route.ts - WMTS capabilities endpoint
src/app/api/wmts-capabilities/route.ts - Safety guidance
src/components/Handlungsempfehlungen - Information pages
src/app/hintergrund-informationen/page.tsx - Portal home
src/app/page.tsx
Other components
- Berlin resident
- GeoServer
Connections 26
- Berlin resident → Address search: enters address
- Address search → Address search action: searches
src/components/AddressSearch.tsx - Address search action → Photon fallback: tries fallback
src/server/actions/searchAddresses.ts - Address search action → Building lookup action: looks up building
src/server/actions/searchAddresses.ts - Building lookup action → GeoServer client: delegates lookup
src/server/actions/findAlkisBuilding.ts - GeoServer client → GeoServer: queries layers
- Address search → Flood check flow: opens check
src/components/AddressSearch.tsx - Flood check flow → Check questions: shows initial check
src/app/hochwasser-check/FloodCheckClient.tsx - Flood check flow → Risk questionnaire: shows questionnaire
src/app/hochwasser-check/FloodCheckClient.tsx - Flood check flow → Risk results: shows results
src/app/hochwasser-check/FloodCheckClient.tsx - Risk questionnaire → Assessment state: uses assessment state
src/components/RiskAnalysis.tsx - Assessment state → Risk calculator: calculates score
src/store/defaultStore.tsx - Assessment state → Risk results: provides state
src/components/Results.tsx - Risk results → Hazard summary: renders hazard summary
src/components/Results.tsx - Risk results → Result details: renders result details
src/components/Results.tsx - Risk results → Risk factors: renders factors
src/components/Results.tsx - Risk results → PDF report: renders report
src/components/Results.tsx - PDF report → Report utilities: uses report utilities
src/components/Report/utils.ts - Interactive hazard map → Map configuration: uses map configuration
- Scenario map → Map configuration: uses map configuration
- Berlin resident → Portal home: visits portal
- Portal home → Interactive hazard map: offers hazard maps
- Portal home → Scenario map: offers scenarios
- Portal home → Information pages: links information
- Portal home → Safety guidance: offers safety advice
- Screenshot endpoint → Berlin resident: returns image