mapbox / cheap-ruler

Fast approximations for common geodesic measurements 🌐
https://www.mapbox.com/blog/cheap-ruler/
ISC License
417 stars 32 forks source link

Much more precise approximation #13

Closed mourner closed 8 years ago

mourner commented 8 years ago

Uses the FCC-recommended formula for Ellipsoidal Earth projected to a plane; taken from https://en.wikipedia.org/wiki/Geographical_distance.

Now it takes slightly longer to create ruler objects, but performance of methods remained the same while making calculations much more precise.