News for hackers. Stuff that matters.
Re:Rust and Raspberry Pi Tide Clock by Uehreka on Wednesday October 07, 2020 @03:18PM (#24711639)
In the scenario I outlined there, you might still get the wrong result because the Sarasota station might be closer by coastal distance too (we’re gonna gloss over the fact that coasts technically have infinite length).

The kicker here is that tides don’t necessarily transition smoothly as you walk the coastline, they can have sharp discontinuities, and so you need to manually figure out where those are and put “search barriers” on them.

Re:Rust and Raspberry Pi Tide Clock by Already__Taken on Sunday October 11, 2020 @02:12PM (#24747787)
> coasts technically have infinite length

Gloss indeed, I think you'd be find just doing the straight line distance between stations. Possibly radius' if it's a long way. We just need the relative distance to/from places not that actual surface area.

If that's not good enough it'd be time to skip re-inventing the wheel and use the secondary port calculation.