Docstring for determine_location