【问题标题】:Draw route in Apple map in ios 6在 iOS 6 中的 Apple 地图中绘制路线
【发布时间】:2012-11-14 11:44:31
【问题描述】:

我想在两个地方之间画一条路线。我有那些地方的 GPS 值。我可以从 google api http://maps.google.com/maps?output=dragdir&saddr=&daddr= 获取这些地方之间的 GPS 路线值。

我想知道谷歌会拒绝我的应用。因为我发现“the Directions API may only be used in conjunction with displaying results on a Google map; using Directions data without displaying a map for which directions data was requested is prohibited. Additionally, calculation of directions generates copyrights and warnings which must be displayed to the user in some fashion. For complete details on allowed usage, consult the Maps API Terms of Service License Restrictions

请给我澄清一下。

【问题讨论】:

    标签: iphone google-maps google-maps-api-3 ios6-maps


    【解决方案1】:

    您不得使用 Google Maps API,除非您将其与 Google Map 一起使用。要使用方向数据,您必须使用UIWebView 和基于 JavaScript 的 Google 地图。

    【讨论】:

    • 那么,在ios 6中,我只能使用UIWebView在MKMapView中显示路线,是吗?
    • 不是不能用苹果地图的数据画出路线。只是这违反了谷歌的政策。 UIWebView 中的地图不是 MKMapView,但您将直接使用 Google Maps javascript API。
    • 如果我们使用 UIWebView 显示地图,那么是否可以像正常一样访问所有操作(如注释点击、获取地图的触摸位置、添加/删除注释、添加/删除覆盖等)地图视图?
    • 它不像使用MKMapView 那样简单易用,但应该可以使用从UIWebView 到objective-c 的回调。看看stackoverflow.com/questions/2873899/…
    猜你喜欢
    • 1970-01-01
    • 2012-10-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-02
    • 1970-01-01
    相关资源
    最近更新 更多