The idea is essentially that instead of using:
_nearestCity = nearestLocation [getPos player, "nameCity"];
one would be able to do:
_nearestLocation = nearestLocation [getPos player, ["nameCity", "nameLocal"]];
This would function similarly to:
_nearestLocations = nearestLocations [getPos player, ["nameCity", "nameLocal"]];
but instead of calculating all of the locations and sorting them by distance into an array, it should only have to grab the closest one and return it as a string.
In theory, this would be better optimized for the more specific use case of finding the nearest location of multiple location types, as opposed to all locations of multiple location types and selecting the first value from the array.