by TeMPOraL · 6mo ago · 0 comments
Motivation: I hate it when it's hot, but my kid has actual issues with heat/sun exposure, and e.g. I had to navigate our way around the city through shaded zones today, just so she doesn't get exhausted in under 30 minutes.
Plenty similar apps are made to sell people photovoltaics, but I'd love to see something to help humans avoid sun.
The idea is to eventually offer a sun or shadow mode and the app will then surface areas, squares, and streets with more sun or shade and eventually offer walking and biking routes with more or less sun.
It currently runs A* for routing between two points on map (no address lookups yet), using either local A* or an OSMR endpoint for base path, and then A* for shadow-aware routing, and shows both, + stats (total time exposed, how much it saves in sunlight exposure and loses in time relative to base), plus has a bunch of debugging overlays so I can validate and diagnose pathfinding and data quality. But I tested it live today, and it mostly checks out with reality (big gap: no data on trees).
I've done a different thing also with OSM data (isochrone rather than point-to-point routing) and put it on github to avoid needing to care about bandwidth on my domain, because also around ten megabytes for Berlin's data, despite having a step to convert JSON to a much more compact form with only the data I needed:
https://github.com/BenWheatley/Isochrone
https://benwheatley.github.io/Isochrone/web/?region=berlin&n...