request location function returns names and codes