Renamed variables to describe purpose.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user