geo-coords-distance

Module for counting distances on the Earth.

Usage no npm install needed!

<script type="module">
  import geoCoordsDistance from 'https://cdn.skypack.dev/geo-coords-distance';
</script>

README

Module for counting distances on the Earth between two points.

Install:

npm install geo-coords-distance

Exsample:

import distance from 'geo-coords-distance';

var firstPoint = {lat: 53.6847, lng: 23.8402}, secondPoint = {lat: 53.9271, lng: 27.5252};

var result = distance(firstPoint, secondPoint);