CLPlacemarke AreaOfInterest 'nil' for almost anything. Alternative?

Hello,

I am using CLGeocoder and reverseGeocodeLocation to get my CLPlacemark. How come the name mostly comes back as an address and areasOfInterest come back as nil? For example... the areasOfInterest appear for really major things like apple HQ and airports, things of that sort but stores such as Walmart, Publix blah blah are nil. Should I be doing something else? Am I expecting more information than is available with this method? I mean, Apple has these points of interest on their maps, is there another way I should be trying to get this informaiton?


Small bit of my code. All works just wanted to give you an adea of what im bringing back and how.


CLGeocoder().reverseGeocodeLocation(manager.location!, completionHandler: {(placemarks, error)->Void in

if placemarks != nil

{

if error == nil && placemarks!.count >= 1 {

let thePlacemarks = placemarks![0] as CLPlacemark

print(placemarks)

print(thePlacemarks.areasOfInterest?.description)

print(thePlacemarks.administrativeArea?.description)

print(thePlacemarks.areasOfInterest?.description)

print(thePlacemarks.country?.description)

print(thePlacemarks.inlandWater?.description)

print(thePlacemarks.isoCountryCode?.description)

print(thePlacemarks.locality?.description)

print(thePlacemarks.location?.description)

print(thePlacemarks.name?.description)

print(thePlacemarks.ocean?.description)

print(thePlacemarks.subAdministrativeArea?.description)

print()

}

}

})


Any help would be great!


Thanks!

In the doc (h ttps://developer.apple.com/documentation/corelocation/clplacemark/1423673-areasofinterest), examples for areasOfInterest are described as:


Examples of an area of interest are the name of a military base, large national park, or an attraction such as the Eiffel Tower, Disneyland, or Golden Gate Park.


So they are really internationally known areas, not all the elements you are looking for.


Probably, shops are managed directly in the app.

I am having the same problem. Why can I not get that the building is a McDonalds? I dont want the address, I want the NAME.

CLPlacemarke AreaOfInterest 'nil' for almost anything. Alternative?
 
 
Q