Socket
Book a DemoInstallSign in
Socket

geo-dist

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geo-dist

Calculate Geo-Distance between two points on a globe

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

geo-dist

Nodejs lib to calculate Geo-distance between two points

Installation

npm i geo-dist -S

Usage

var lat1 = 12.945438
var lon1 = 77.606741
var lat2 = 12.945103
var lon2 = 77.635065

parseFloat(distance(lat1, lon1, lat2, lon2)).toFixed(2).should.be.eql('3.07')

Test

npm test

License

MIT

Keywords

geo

FAQs

Package last updated on 17 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts