refactor(helpers): rename distanceBetween to distanceFrom
This commit is contained in:
@@ -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
|
||||
};
|
||||
Reference in New Issue
Block a user