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

倾然丶 夕夏残阳落幕 提交于 2019-12-05 00:38:19

问题


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.



来源:https://stackoverflow.com/questions/43249382/mklocalsearch-doesnt-provide-the-same-results-as-search-in-native-apple-maps-ap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!