thealmarques / haversine-distance-typescript

Calculates Haversine Distance to calculate the difference between two coordinates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Haversine Distance

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.

Installation

Install node dependencies using

npm install

Usage

npm run distance

This will execute index.ts containing a default example. You can edit this file to fit for your needs.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

Calculates Haversine Distance to calculate the difference between two coordinates

License:MIT License


Languages

Language:TypeScript 100.0%