iPhone Mapkit:如何从经度/纬度获取真实的公司名称/地址?

发布于 2024-08-28 01:57:56 字数 132 浏览 5 评论 0原文

我正在编写一个 iPhone 应用程序,并尝试确定如何从用户当前的 GPS 位置(经度/纬度)查找企业名称/地址。例如,如果有人在星巴克内部使用该应用程序,我如何从他们的位置找到这一点?有没有办法使用mapkit或任何API/Web服务来做到这一点?

I'm writing an iPhone application and trying to determine how to find a business name/address from a user's current GPS location (longitude/latitude). For example, if someone if using the application from inside a Starbucks, how can I find this out from their location? Is there a way to do this using mapkit or any API/Webservice?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

李白 2024-09-04 01:57:56

您可以通过提供 MKReverseGeocoderDelegate。其实很简单。

该代表将以 MKPlacemark 的形式为您提供各种信息。

You can do this with MKReverseGeocoder by providing a MKReverseGeocoderDelegate. It's actually quite simple.

The delegate will give you all sorts of information as an MKPlacemark.

深者入戏 2024-09-04 01:57:56

您可以获取地址(MKReverseGeocoder),但无法使用iPhone本机SDK获取企业名称。我相信 Google 和 Bing 都为此提供了 API,但我喜欢使用的 API(而且可能最具动力)是 Foursquare 的 API。

You can get an address (MKReverseGeocoder), but you can't get a business name using the iPhone native SDK. I believe that both Google and Bing provide APIs for this, but one that I like to use (and it may have the most momentum) is Foursquare's.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文