简体   繁体   English

iPhone - 我可以在不显示地图的情况下使用MapKit吗?

[英]iPhone - can I use MapKit without displaying a Map?

I am writing an app that will use Reverse Geocoding to translate the user's current location into something like a Street Address or City. 我正在编写一个应用程序,它将使用反向地理编码将用户的当前位置转换为街道地址或城市。 It seems the only way to get this kind of information is via MapKit (specifically the Placemark class). 看来获取此类信息的唯一方法是通过MapKit(特别是Placemark类)。

Can I use this without having to display a map to the user? 我可以使用它而不必向用户显示地图吗?

The reason I am asking this is because in the Google HTTP Reverse Geocoding documentation it states: 我问这个的原因是因为在Google HTTP Reverse Geocoding文档中它指出:

Note: the geocoding service may only be used in conjunction with displaying results on a Google map; 注意:地理编码服务只能与在Google地图上显示结果一起使用; geocoding results without displaying them on a map is prohibited. 禁止在地图上显示地理编码结果。 For complete details on allowed usage, consult the Maps API Terms of Service License Restrictions. 有关允许使用的完整详细信息,请参阅Maps API服务条款许可限制。

I'm wondering if this holds true for the MapKit API as well or if Google and Apple worked something out. 我想知道这对MapKit API是否也适用,或者谷歌和苹果是否能解决问题。

I answer my own question way too much around here - 我在这里过多地回答我自己的问题 -

10.12 use or display the Content without a corresponding Google map, unless you are explicitly permitted to do so in the Maps API Documentation, the Street View API Documentation, or through written permission from Google (for example, you must not use geocodes obtained through the Service except in conjunction with a Google map, but the Street View API Documentation explicitly permits you to display Street View imagery without a corresponding Google map); 10.12在没有相应Google地图的情况下使用或显示内容,除非您在Maps API文档,街景API文档或Google的书面许可下明确允许这样做(例如,您不得使用通过Google获得的地理编码)服务除了与Google地图一起使用,但街景API文档明确允许您显示没有相应Google地图的街景图像); or 要么

via Google Maps iPhone TOS 通过谷歌地图iPhone TOS

The Map Kit framework provides an embeddable map interface for your application. Map Kit框架为您的应用程序提供了一个可嵌入的地图界面。 Use it to display map or satellite imagery from the windows and views of your custom applications. 用它来显示自定义应用程序的窗口和视图中的地图或卫星图像。 You can also use the framework to annotate your maps with points of interest and other custom information. 您还可以使用框架使用兴趣点和其他自定义信息来注释您的地图。

What was stated above about using Googles HTTP API for reverse geocoding would be a better way to display the information you are looking for and using a text box to read the information. 上面介绍的使用Googles HTTP API进行反向地理编码的方法是显示您要查找的信息并使用文本框读取信息的更好方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM