haversine_distance
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Implementation of the Haversine formula for calculating the great circle distance between two points on a sphere.
If no radius
is provided, the average Earth’s radius is used with a value of 6371km.
Migrated from folder: geographic/haversine_distance