compare-latlong

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i compare-latlong

Weekly Downloads

8

Version

1.0.4

License

MIT

Unpacked Size

1.72 kB

Total Files

3

Last publish

Collaborators

  • arpit18