1.0.3 • Published 5 years ago

measure-geolocation v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

measure-geolocation

measure-geolocation is a Javascript library for measure distance between Geo Locations.

Installation

Use the npm package manager to install measure-geolocation.

npm install measure-geolocation


## Usage

```javascript
const geoLocation = require('measure-geolocation');

let source = {lat : 28.535517, lon : 77.391029};  // lat lon of source location
let destination = {lat : 28.704060, lon : 77.102493};  // lat lon of source location
let distance = geoLocation.getDistanceFromLatLonInKm(source, destination);  // distance between source and location in km

console.log(distance);