From fd69b4de1b272575b2f68f099c7cf5f3152160e2 Mon Sep 17 00:00:00 2001 From: Christian Weimann Date: Sat, 15 Feb 2025 08:50:28 +0100 Subject: [PATCH] refactor(helpers): rename distanceBetween to distanceFrom --- utils/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/helpers.js b/utils/helpers.js index f9d74c1..343d06c 100644 --- a/utils/helpers.js +++ b/utils/helpers.js @@ -19,7 +19,7 @@ function debounceFunction(id, debounceTimeout, func, params) { } } -function distanceBetween(locationA, locationB) { +function distanceFrom(locationA, locationB) { const [lat1, lon1] = locationA.split(',').map(Number); const [lat2, lon2] = locationB.split(',').map(Number); @@ -47,5 +47,5 @@ function distanceBetween(locationA, locationB) { module.exports = { debounceFunction, - distanceBetween + distanceFrom }; \ No newline at end of file