Function to find a number of areas and return an array of locations