iosmapkituisearchbar

MapKit with UISearchBar


So if I understand correctly you can no longer use certain Google APIs with iOS (ex. Google Places). So how can we use the iOS MapKit with a UISearchBar to search for locations? The map on my iPhone has a searchbar so if I, for example, type coffeshops I get all the pins in my area of local coffesshops. If Apple is not using Google APIs what are they using to find this data? How can we developers tap into this search data?


Solution

  • MapKit contains a search request to replace the outgoing Google APIs.

    https://developer.apple.com/library/ios/#documentation/MapKit/Reference/MKLocalSearchRequest_class/Reference/Reference.html#//apple_ref/doc/uid/TP40012892