MKLocalSearch提供的结果与本地Apple Maps应用程序中的搜索结果不同 [英] MKLocalSearch doesn't provide the same results as search in native Apple Maps app

查看:145
本文介绍了MKLocalSearch提供的结果与本地Apple Maps应用程序中的搜索结果不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用相同的字符串在MKLocalSearch和Apple Maps中进行搜索时,会得到不同的结果,通常在Apple Maps中,我会得到很多不同的位置,但是在MKLocalSearch中,我只会得到一个位置.

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:

Apple Maps:

我的应用使用MKLocalSearch:

My app using MKLocalSearch:

在这两种情况下,我都是在柏林搜索,在MKLocalSearchRequest中,我设置了柏林地区的.region属性.

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

Apple会在位置搜索中使用哪些服务?

Which services does Apple use for their location search?

推荐答案

进行搜索后,我调查了

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

这篇关于MKLocalSearch提供的结果与本地Apple Maps应用程序中的搜索结果不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆