# measure-geolocation

> Utilty pacakage to find distance between different geographical locations

Latest version **1.0.3** (published 2019-08-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install measure-geolocation
pnpm add measure-geolocation
yarn add measure-geolocation
bun add measure-geolocation
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2019-08-11 |
| First published | 2019-08-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Raman Kumar |
| Maintainers | rmnkmr |
| Keywords | DistanceCalculator, getDistanceFromLatLonInKm, deg2rad, geo location, distance |

## Links

- npm: https://www.npmjs.com/package/measure-geolocation
- npm.io page: https://npm.io/package/measure-geolocation

## Recent versions

- 1.0.3 (latest) — 2019-08-11
- 1.0.2 — 2019-08-11
- 1.0.0 — 2019-08-11

## 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.

```bash
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);

---
_Source: https://npm.io/package/measure-geolocation · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
