Updated get_locality_name to use the standard futures