1.1.0 • Published 10 years ago

geo-dist-calc v1.1.0

Weekly downloads
8
License
ISC
Repository
github
Last release
10 years ago

geo-dist-calc

  • CreatedOn- 07/06/2016
  • 1.sourcePoints is an object containing latitude,longitude of a one point(start point).
  • 2.destinationPoints is an object containing latitude,longitude of a another point(end point).
  • 3.Get the latitude and longitude of both the points.
  • 4.Get the Radius of earth which is approximate to 6371 km.
  • 5.calculate the difference of two lat long.
  • 6.apply the ‘haversine’ calculation.

    	# Installation
    	```
    	npm install geo-dist-calc
    	```
    	```javascript
    	var distance = require('geo-dist-calc');
    	//Example
    	var sourcePoints = { latitude: 32.123, longitude: 43.21 };

    var destinationPoints = { latitude: 67.331, longitude: 56.214 }; var ResultantDistance = distance.discal(sourcePoints,destinationPoints); // ResultantDistance will be an object contains kilometers and miles form source to destination.

    	```
1.1.0

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago