harvesinedistance
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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 ikhan77727@gmail.com. LinkedIn: https://www.linkedin.com/in/imrankhan001/

P.S: I excel in Remote Work Only

Package Sidebar

Install

npm i harvesinedistance

Weekly Downloads

3

Version

1.0.0

License

ISC

Unpacked Size

14.2 kB

Total Files

4

Last publish

Collaborators

  • imran001