Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

latitude and longitude distance calculate in node js

//npm i geopoint
const GeoPoint = require('geopoint');
point1 = new GeoPoint(51.5103, 7.49347);
point2 = new GeoPoint(51.5200, 7.49347);
var distance = point1.distanceTo(point2, true)//output in kilometers
console.log(distance)

//$uj@y
 
PREVIOUS NEXT
Tagged: #latitude #longitude #distance #calculate #node #js
ADD COMMENT
Topic
Name
6+7 =