1.0.4 • Published 5 years ago

compare-latlong v1.0.4

Weekly downloads
18
License
MIT
Repository
-
Last release
5 years ago

Project Title

compare-latlong

Getting Started

You just need to pass source lat-long , destination lat-long and unit of distance (K=kilometer, M= Miles) as a parameter and resultant will be the distance b/w them.

Prerequisites

You should have node version greater than 6.0.0

node -v

Installing

npm i compare-latlong

Example

Steps-

var  difference = require('compare-latlong');

//Distance b/w the source and destination
var distance = difference(lat1, long1, lat2, long2, "K");

Authors

  • Arpit Shukla

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • stackoverflow
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago