The haversine formula determines the great-circle distance between two points on a sphere given their longitudes and latitudes (Read More). In this example the earth will be the sphere that will be used to calculate the distance between two geographical coordinates.
Install node dependencies using
npm install
npm run distance
This will execute index.ts containing a default example. You can edit this file to fit for your needs.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.