Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Google Maps API for iOS which offers traffic information?

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?

like image 205
xGoPox Avatar asked Jan 18 '23 20:01

xGoPox


1 Answers

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

like image 190
Arun Nagarajan Avatar answered Mar 08 '23 23:03

Arun Nagarajan