Latitude e longitude Distância Calcule no nó js
// npm i geolib
const { getDistance } = require('geolib');
const distance = getDistance(
{ latitude: 51.5103, longitude: 7.49347 },
{ latitude: 51.5200, longitude: 7.49347 }
)
console.log(distance / 1000) //value in km
//$uj@y
$uj@y