© Jeffrey Linwood 2020
J. LinwoodBuild Location Apps on iOS with Swifthttps://doi.org/10.1007/978-1-4842-6083-8_4

4. Searching for Points of Interest

Jeffrey Linwood1 
(1)
Austin, TX, USA
 

Apple has its own database of places and addresses that you can use with your iOS application. Your code can call an instance of the MKLocalSearch class to get points of interest that you can then display on a map view. This makes it easy to implement search functionality based on what geographic region is currently displaying in the map.

Create a new Swift iOS project in Xcode with the Single View Application template. Name your application SearchingForPointsOfInterest. Go ahead and add a map view to the only screen in the storyboard, and connect it to an outlet ...

Get Build Location Apps on iOS with Swift: Use Apple Maps, Google Maps, and Mapbox to Code Location Aware Mobile Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.