How to get an unabbreviated version of a CLPlacemark administrative area

741 views Asked by At

When I call this delegate method:

func displayLocationInfo (placemark: CLPlacemark) {
    
    self.locationManager.stopUpdatingLocation()
    
    // Find current state
    self.currentState = placemark.administrativeArea
}

The administrative area returns, for example, CA instead of California. Is there anyway I can make the administrative area return the full name instead of the abbreviated version. Any help will be appreciative!

1

There are 1 answers

0
Cristik On

Nope, there is no reliable way to retrieve this information. Per Apple documentation:

The string in this property can be either the spelled out name of the administrative area or its designated abbreviation, if one exists. If the placemark location is Apple’s headquarters, for example, the value for this property would be the string “CA” or “California”.

(Answer extracted from this comment)