7

When I search in MKLocalSearch and Apple Maps using the same string I get different results, usually in Apple Maps I get a lot of different locations but in MKLocalSearch I get only one.

Apple Maps:

enter image description here

My app using MKLocalSearch:

enter image description here

In both cases I was searching being in Berlin and in MKLocalSearchRequest I set .region property of Berlin region

Which services does Apple use for their location search?

Ivan Androsenko
  • 608
  • 6
  • 15
  • 1
    Man, you answered my 4 years old question :) https://stackoverflow.com/questions/20101240/how-to-get-same-search-hints-as-apple-maps-in-my-application Thank you very much :) – travdu Feb 04 '18 at 17:59
  • @travdu Oh, it seems i couldn't find your question at that time... This issue really took my a while to find the solution – Ivan Androsenko Feb 05 '18 at 10:59
  • is it working for you as expected? I didn't have time to try it so far :) – travdu Feb 05 '18 at 21:34
  • yes, that works perfectly. it will provide results like these: https://gist.github.com/anonymous/62d15497f74bf29a99249a12181b717a – Ivan Androsenko Feb 06 '18 at 09:53

1 Answers1

5

After doing some searching I've investigated that MKLocalSearchCompleter is the class that Apple uses in their Map app.

Ivan Androsenko
  • 608
  • 6
  • 15
  • https://stackoverflow.com/questions/20101240/how-to-get-same-search-hints-as-apple-maps-in-my-application you are my hero now ! – travdu Aug 03 '20 at 13:34