harvesinedistance
v1.0.0
Published
Caluculate the distance between two points on the earth using the Haversine formula
Downloads
5
Maintainers
Readme
About
This is a simple library to calculate the distance between two points on the earth using the Haversine formula.
Usage
import calculateHaversineDistance from "harvesinedistance";
const distance = calculateHaversineDistance(
{ latitude: 51.509865, longitude: -0.118092 },
{ latitude: 51.503333, longitude: -0.119722 }
);
console.log(distance); // 0.549
Hire Me
Want to work with a kickass senior frontend dev?
Email me at [email protected]. LinkedIn: https://www.linkedin.com/in/imrankhan001/
P.S: I excel in Remote Work Only