lat-lang-disatnce-calculater

To calculate distance between two latitudes and longitudes

Usage no npm install needed!

<script type="module">
  import latLangDisatnceCalculater from 'https://cdn.skypack.dev/lat-lang-disatnce-calculater';
</script>

README

What is this?

To calculate distance between two latitudes and longitudes

Installing

$ npm install distanceCalLatLong

Building bundled/minified version (for AMD, etc)

First run npm install to get all of the dependencies, and then run make:

$ npm install
$ make

The bundled and minified files will be in the generated build directory.

Getting Started

var distance = require('distanceCalLatLong');

var latLong1 = {
lat: '',
lng: ''
}
var latLong2 = {
lat: '',
lng: ''
}
var calDistance = distance.calculateDistance(latLong1, latLong2)