是否有适用于iOS的Google Maps API提供交通信息? [英] Is there a Google Maps API for iOS which offers traffic information?

查看:127
本文介绍了是否有适用于iOS的Google Maps API提供交通信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人获得了有关Google Maps API的文档, 我只是在寻找流量实时信息 ,我希望在其上实施我的iOS应用程序。



这样的API是否存在?

解决方案

认为Google目前提供了一个独立的流量API。但是有几个选项。


  • 呈现WebView中的Google Maps元素并使用Google JavaScript API启用流量图层。这种方法的缺点是UX可能不会像原生编程那么好。好处是编码少。



http: //code.google.com/apis/maps/documentation/javascript/



http://code.google.com/apis/maps/documentation/javascript/reference.html#TrafficLayer




  • 调用另一个流量提供者的REST API并覆盖本地iOS地图组件。如果您获得KML响应,则此代码叠加通过代码非常简单。我所知道的两个是MapQuest(是的,他们还在!)和雅虎(尽管他们的API现在正在转型)。



http://www.mapquestapi。 com / traffic /



http ://developer.yahoo.com/traffic/rest/V1/index.html


I would like to know if someone has got documentation about the Google Maps API, I'm only looking for the traffic live information I would like to implement it on my iOS application.

Does such an API exist?

解决方案

I don't think Google offers a standlone traffic API as of now. However there are a couple options.

  • Render the Google Maps element in a WebView and use the Google JavaScript API to enable the traffic layer. The downside of this approach is that the UX likely wont be as nice as native programming. The upside is less coding.

http://code.google.com/apis/maps/documentation/javascript/

http://code.google.com/apis/maps/documentation/javascript/reference.html#TrafficLayer

  • Call another traffic provider's REST API and overlay on top of the native iOS map component. This overlay is pretty straightforward through code if you get a KML response. The two I know of are MapQuest (yes, they are still around!) and Yahoo (though their API is in transition now).

http://www.mapquestapi.com/traffic/

http://developer.yahoo.com/traffic/rest/V1/index.html

这篇关于是否有适用于iOS的Google Maps API提供交通信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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