def result_to_country_region_city(result):
 country = result_to_country(result)
 if country:
  region = result_to_region(result, country)
  city = result_to_city(result, country, region)
 else:
  region = city = None
 return (country, region, city)

def result_to_country_region_city ( result ) : country = result_to_country ( result ) if country : region = result_to_region ( result , country ) city = result_to_city ( result , country , region ) else : region = city = None return ( country , region , city )
given one result from mapbox .