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