MKLocalSearch doesn't provide the same results

2019-03-29 11:15发布

问题:

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:

My app using MKLocalSearch:

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?

回答1:

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