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.
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).
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.
The method Astral uses for calculate Moon's location has precision of 1 arc minute. For higher precision, LEA-406 [1] can be used.
[1] https://www.aanda.org/articles/aa/full/2007/33/aa7568-07/aa7...
NASA's Horizons ephemeris is also pretty good at preparing data for this. I've used it with a little script to check when the sun/moon will be in a given box. This hengefinder looks neat and really streamlined for its purpose though.
For example https://www.sunsurveyor.com/ or https://www.photopills.com/ best among others
I've been meaning to post about it.
hint, watch the sticks shadow
other hint, can use almost anything that casts a shadow, as a stick substitute.* even more hints availible with stick™ pro
instruction manual:place stick verticaly on planet. observe shadow™ and place rock™ at point of of maximum shadow length, each day continue untill the pattern starts to repeat. reverse engineer orbital dynamics and gravitational atraction from resulting pattern. scratch head. build civilisation.
For any other curious people: https://www.english-heritage.org.uk/visit/inspire-me/what-is...
For instance in Houston the sunrise aligns with Texas Avenue around the June solstice.
Consequently, there are no sunset alignments for the downtown skyscrapers.