How it works
One question, one answer, and until when.
Tap Sun or Shade
Café or bench, then the light you want. That is the whole interface.
It picks one place
The nearest that has that light now and keeps it for at least 20 minutes, with the time it ends: “Sun until 13:32”.
It draws the walk
The route there, over the city in 3D, lit from where the sun stands, so the shadows on the map fall where the answer says.
From the buildings
My part at the hackathon: the shadows, and picking by them.
Sun and shade come from the city’s own 3D model of 8,732 buildings and the position of the sun.
At the hackathon I built that part: the 3D shadow map of the centre and the picking that chooses a place by whether it is actually in the light. It covers a box of about 2.3 by 1.3 km around the main square.
Each building is a flat-roofed block. For a seat, the app follows a line from it toward the sun and looks for the first block the line enters. If that roof is higher than the line, the seat is in shade. “Until when” is the same question asked again for every minute ahead.
The map draws those same blocks with one light where the sun is, so what you see on screen is cast by the buildings the answer came from. All of it runs in a web worker in the browser. There is no server.
Where the tables are
An assumption
OpenStreetMap puts most cafés as a point inside their building, where it is always shade. So for a café mapped under a roof, the app judges a point two metres outside its nearest wall that faces open ground, skipping walls shared with the next building.
Where the tables really stand is not mapped anywhere, and the app says so under every pick that relies on the guess.
- Built with
- Next.js, Mapbox GL, Web Workers
- My part
- The 3D shadow map and the shadow-based picking
- Knows
- 8,732 buildings, 147 cafés, 342 benches
- Live at
- sada-hackathon.vercel.app

