MKLocalSearch helps to find nearby local points of interest.
Questions tagged [mklocalsearch]
75 questions
4
votes
0 answers
I'm trying to perform an MKLocalSearch, but only searching within a given radius
So let's say I'm trying to search for a query within 1 mile radius of the user's current location. Here's my search code so far:
- (void) performLocalSearch{
MKLocalSearchRequest *searchRequest = [[MKLocalSearchRequest alloc] init];
…

user3705267
- 69
- 4
4
votes
1 answer
How to search for locations using UISearchBar with autocompletion and suggestions?
I am developing an app in which user can search for a point of interests, pick a search result and then the MKMapView will be centered to the result coordinate.
My question is how to make autocompletion happen? I have did research on MKLocalSearch…

wz366
- 2,840
- 6
- 25
- 34
4
votes
2 answers
Filtering/ordering MKLocalSearch response
I am using MKLocalSearch to perform a map search. My problem is the ordering of the MKMapItems in the response. For example, a search of the city that I am currently in would first return a number of businesses related to the city name and I would…

Daniel Larsson
- 6,278
- 5
- 44
- 82
3
votes
0 answers
Convert address to coordinates using MKLocalSearchCompleter and CoreLocation
I have tried to make an app with a textfield to let user input a location, using MKLocalSearchCompleter to complete the searching. After that i would like to get the coordinate and display on the MapKit. However, I failed to get the coordinate…

user6539552
- 1,331
- 2
- 19
- 39
3
votes
2 answers
How to make - Autocomplete search for global rather than local
I am using the following code:
class SearchViewController: UIViewController {
var searchCompleter = MKLocalSearchCompleter()
var searchResults = [MKLocalSearchCompletion]()
@IBOutlet weak var searchResultsTableView: UITableView!
…

Enrik Qaz
- 243
- 4
- 14
3
votes
2 answers
Apple CLGeocoder,MKLocalSearch result differ from device map result
In my application search with the location string, it ll return the 5 result, but that not match with default device map app.
my code 1 : CLGeocoder
CLGeocoder *geocoder = [[CLGeocoder alloc] init];
[geocoder geocodeAddressString:searchKey…

Ammaiappan
- 539
- 3
- 22
3
votes
0 answers
How do I sort a MKLocalSearchResponse from closest to farthest location
I am using core location to get a CLLocation of my current position. I then use MKLocalSearchRequest in order to find places close to that location that mach a search query, such as "Coffee" or whatever.
I get a MKLocalSearchResponse back from the…

mattwallace
- 4,132
- 6
- 43
- 77
3
votes
1 answer
MKLocalSearch WITHOUT MKMapView
I would like to use MKLocalSearch to display results for a pre-defined string with results relevant to the users position, however all the examples I have seen so far require or use MKMapView to set the users location, and perhaps use the search bar…

ColinMasters
- 511
- 7
- 19
2
votes
0 answers
Use MKLocalSearch to populate a UITableView
I'm a new programmer. Trying to use the data that is returned in my search to populate a UITableView. Currently, I just have to zooming in on the map to an annotated area, but would like to present a table view of information.
import UIKit
import…

Bchipper88
- 21
- 3
2
votes
1 answer
Using MKLocalSearch CompletionHandler correctly
I am using mapkit to make an app that helps users find nearby restaurants (among other things) that appeal to them and am trying to utilize a MKLocalSearch. I have declared myMapItems, which is an array of MKMapItem, and am trying to set it equal to…

David Chopin
- 2,780
- 2
- 19
- 40
2
votes
1 answer
Why do I get an MKErrorDomain error when doing a local search?
I am trying to implement a search bar where the user can type in a string and search for an address or a business.
To find businesses I use Yelp APIs to outsource the information I need.
To find addresses I use Apple's MKLocalSearch APIs to get the…

fja
- 1,823
- 1
- 15
- 28
2
votes
1 answer
Search for a place or address like in Apple Maps iOS 10
I am trying to recreate/get a same search list from MKLocalSearch but no luck. I tried many options with region, radius, delta. But my results different instead results from Apple Maps app. Result of apple maps is more better for all of idea for…

dev.nikolaz
- 3,184
- 3
- 19
- 32
2
votes
1 answer
MKLocalSearch not finding all nearby restaurants
I implemented an MKLocalSearch within a certain region on the mkmapview that returns an array of restaurants within the region. Through research, only 10 restaurants are being shown. Is there's a way so that the MKLocalSearch can return more than 10…

Chris Gong
- 8,031
- 4
- 30
- 51
2
votes
1 answer
How to search addresses in MKMap using MKLocalSearch
I'm trying to search through the addresses using MKLocalSearch, but it only comes up with business and not the exact address like e.g Maps (Apple's App).
I hope u guys can help me out - thanks! :)
MKLocalSearchRequest *request =…

JMIT
- 169
- 2
- 15
2
votes
1 answer
Batch Geocode MKLocalSearchResponse
I have a search setup that displays the response of a MKLocalSearchRequest in UITableVIew
I want to clean up all the responses from the response of each search. Here is my shot at accomplishing this so far, inspired by this post Multiple Locations…

Jordan Brown
- 293
- 1
- 4
- 16