Volodymyr Agafonkin
Volodymyr Agafonkin
I've started working on a rewrite of SunCalc based on Meeus Astronomical Algorithms (2nd ed). It's in very early stage as I figure out all the underlying concepts, but it's...
@tdulcet nice tool β thanks for sharing! I already wrote the minimal, heavily optimized code with Meeus-based formulas for Sun position/times that are more precise ready to replace the one...
Thanks for the report! Unfortunately RBush-KNN is not designed to work with spherical coordinates. I'd suggest using https://github.com/darkskyapp/sphere-knn or write your own `rbush-sphere-knn` library.
RBush is used for many use cases beyond the Earth one (e.g. non-geographical 2D visualizations), and adding another distance metric in a configurable way will probably increase the complexity of...
Mind that for this particular KNN algorithm to work consistently, the custom distance metric should satisfy the condition "the distance to a bounding box is guaranteed to be equal or...
Thinking about it more, it might be a great idea to make this a part of this repo. Let's look into it! Thanks to @anandthakker for validating my assumption about...
@phillip-martin no, that's a proof that the condition is satisfied.
@phillip-martin as a warmup, I solved this problem for points β check out the code here: https://github.com/mourner/geokdbush/. For bounding boxes, the only remaining challenge is to find a good definition...
Can you bring back the original formatting? I don't see the actual diff.
Day length is simply `sunset - sunrise`. I'm not sure it warrants a separate property.