Skip to content

Module for (fast but approximate) distances calculation on the Earth between two points.

License

Notifications You must be signed in to change notification settings

pasvistelik/geo-coords-distance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geo-coords-distance

Module for (fast but approximate) distances calculation on the Earth between two points.

Installing:

npm install geo-coords-distance

Usage exsample:

import distance from 'geo-coords-distance';

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

const result = distance(firstPoint, secondPoint);