measure-geolocation
v1.0.3
Published
Utilty pacakage to find distance between different geographical locations
Downloads
4
Maintainers
Readme
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);