2

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 search places.

I used MapSearch app for example from Apple documentation

and options

MKLocalSearchRequest *request = [[MKLocalSearchRequest alloc] init];
request.naturalLanguageQuery = searchString; 
request.region = MKCoordinateRegionMakeWithDistance(CLLocationCoordinate2DMake(self.userCoordinate.latitude, self.userCoordinate.longitude), 100, 100);

And its a big differents

enter image description here enter image description here

Update:

I noticed when I put more precise queries, result is a same (if I put full name of place), but I don't have any idea how find more result use one letter like in example

dev.nikolaz
  • 3,184
  • 3
  • 19
  • 32
  • have tried to increase your region ? request.region = MKCoordinateRegionMakeWithDistance(CLLocationCoordinate2DMake(self.userCoordinate.latitude, self.userCoordinate.longitude), 2000, 2000); for example – GIJOW Oct 13 '16 at 16:46
  • @GIJOW, I tried but no luck – dev.nikolaz Oct 13 '16 at 21:09
  • I think the search results in the right image come from the application logic of the Maps app, which knows your previous searches and many other things. I believe, that you have to implement similar functions to have similar results. – gklka Nov 29 '18 at 15:53

1 Answers1

1

You might want to try MKLocalSearchCompleter API. Here is documentation link. https://developer.apple.com/reference/mapkit/mklocalsearchcompleter

slonkar
  • 4,055
  • 8
  • 39
  • 63