Added getLocationMapArray() function to get a map of locations.