Renamed variables to describe purpose.

This commit is contained in:
Naida Vatric
2020-02-23 18:47:27 +01:00
parent 6791a509d0
commit 8435afe9c5
7 changed files with 24 additions and 24 deletions

View File

@@ -17,15 +17,15 @@ const getLocation = async (req, res) => {
return;
}
const selectedArea = searchRequest.areaToSearch;
const sw = selectedArea.coordinates[0][3];
const ne = selectedArea.coordinates[0][1];
const southWest = selectedArea.coordinates[0][3];
const northEast = selectedArea.coordinates[0][1];
if (sw[0] && ne[0]) {
selectedLatLngBounds = {
swLat: sw[1],
swLng: sw[0],
neLat: ne[1],
neLng: ne[0]
swLat: southWest[1],
swLng: southWest[0],
neLat: northEast[1],
neLng: northEast[0]
};
boundsSelected = true;
}