Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

distance-lat-lng

1.0.3 • Public • Published

Calculate Distance in Kilometers and Miles between two lat lng positions

No third party dependency required for distance calculation between two points, just require this package and move on.

Installation

npm i distance-lat-lng --save

Usage

var distance = require("distance-lat-lng");
 
var miles = distance.calculateMiles(LongitudeStart , LongitudeEnd)//Response will be distance in miles between given two points
console.log(miles);
 
var kilometres =  distance.calculateKilometres(LongitudeStart , LongitudeEnd)//Response will be distance in Kilometres between given two points
console.log(kilometres);

License

MIT

Install

npm i distance-lat-lng

DownloadsWeekly Downloads

5

Version

1.0.3

License

ISC

Unpacked Size

1.59 kB

Total Files

3

Last publish

Collaborators

  • avatar