kodecocodes / swift-algorithm-club

Algorithms and data structures in Swift, with explanations!
MIT License
28.78k stars 5.01k forks source link

Haversine Distance #244

Closed jejernig closed 8 years ago

jejernig commented 8 years ago

Anyone have a good swift 3 Haversine distance algorithm?

If your unsure what the Haversine formula does then I can briefly explain. It's used in navigation to find the distance between two points on a sphere (the earth) of latitude and longitude. I am basically going to implement this into MapKit to find the distance between my location and an alert on a map.

JaapWijnen commented 8 years ago

Implemented this with #255

kelvinlauKL commented 8 years ago

@jejernig Seems like @JaapWijnen has you covered 👍