Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lunaticmonk/great-circle-distance
A npm package to calculate the distance between two coordinates on the earth.
https://github.com/lunaticmonk/great-circle-distance
coordinate-distance coordinates great-circle-distance latitude-and-longitude
Last synced: 5 days ago
JSON representation
A npm package to calculate the distance between two coordinates on the earth.
- Host: GitHub
- URL: https://github.com/lunaticmonk/great-circle-distance
- Owner: lunaticmonk
- License: mit
- Created: 2019-04-14T09:33:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-20T15:26:19.000Z (over 5 years ago)
- Last Synced: 2024-11-05T18:26:03.805Z (9 days ago)
- Topics: coordinate-distance, coordinates, great-circle-distance, latitude-and-longitude
- Language: JavaScript
- Size: 7.81 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
❯❯❯ Great Circle Distance
A npm package to calculate the distance between two coordinates on the earth. Read more about it here.
Source: Wikipedia### Installation and Usage
```sh
npm install great-circle-distance --save
```or
```sh
yarn add great-circle-distance
``````sh
const { greatCircleDistance } = require("great-circle-distance");const coords = {
lat1: "12.9611159",
lng1: "77.6362214",
lat2: "12.9611159",
lng2: "75.6362214"
};greatCircleDistance(coords);
// => 216.723363263401 kms
```### Node.js version
```
any version greater than v7.6.x.
```### Contribute
Open a pull request against the master.
Also, ⭐ the repo to make it reach to others.
### LICENSE
MIT