//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