zone reduction tick working kinda

This commit is contained in:
2024-04-17 18:55:08 +00:00
parent 40241311ee
commit 46ce93e84e
5 changed files with 86 additions and 33 deletions

View File

@@ -1,4 +1,4 @@
function getDistanceFromLatLon([lat1, lon1], [lat2, lon2]) {
export function getDistanceFromLatLon({lat: lat1, lng: lon1}, {lat: lat2, lng: lon2}) {
var R = 6371; // Radius of the earth in km
var dLat = deg2rad(lat2-lat1); // deg2rad below
var dLon = deg2rad(lon2-lon1);