Hacker News new | ask | show | jobs
by cyborgx7 1561 days ago
Very cool. Sorry for being "that guy" but I assume this doesn't take into account the earth surface curvature, just the relative sun position and then assumes a flat earth?

It probably not nearly significant enough on the scale of the use case described on the site, but a shadow on a sphere has a different shape than a shadow on a plane. Though that effect may cancel out depending on the map projection that was used.

2 comments

Yup, seems to treat Earth as flat, not really useful in my area (living in the valley, surrounded by high mountains from east and west - sunrise time does not mean you're going to see sun, if it's still hiding behind a mountain).
Assumes a flat surface, I've just tested it on a large crater [0].

[0] http://shadowcalculator.eu/#/lat/-23.928141910247348/lng/-68...