CoreSpotlight: Allow an item to have more than one geolocation

Originator:nicolas.bouilleaud
Number:rdar://22029736 Date Originated:2015-07-28
Status:Open Resolved:
Product:iOS SDK Product Version:9.0 (13A4305g)
Classification:Enhancement Reproducible:
 
CSSearchableItemAttributeSet has properties to describe a location: a latitude, a longitude, and a namedLocation. However, there’s only room for one such location in the attributes

Steps to Reproduce:
Try to set an array of locations as the item attributes.

Expected Results:
There should be an API like CSSearchableItemAttributeSet.locations. It also could make use of the CoreLocation objects.

Actual Results:
There’s no such API.

Version:
iOS 9.0 (13A4305g)

Notes:
* There is a number of GPS* attributes, including GPSDestLatitude and GPSDestLongitude. However, they seem to have no effect. In fact, all these GPS* attributes seem to find their origin in kCGImagePropertyGPSDictionary, and may actually be unrelated the namedLocation/latitude/longitude properties.

* The text in "namedLocation" is searchable in Spotlight, and the lat/long can be opened in maps.app. I suspect that the latitude/longitude are also used by Spotlight/Siri to provide relevant results. 

* See also radars 22029706 and 22029715, related to CoreSpotlight documentation.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!