Search code examples
iosmapsmapkitmklocalsearchmklocalsearchrequest

MKLocalSearch doesn't provide the same results as search in native Apple Maps app


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?


Solution

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