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

I would like to know if anyone has any documentation on the Google Maps API. I am looking for information about current traffic . I would like to implement it in my iOS application.

Is there such an API?

+4
source share
1 answer

I don’t think that Google currently offers a standalone traffic API. However, there are a couple of options.

  • Display a Google Maps element in WebView and use the JavaScript JavaScript API to enable traffic levels. The disadvantage of this approach is that UX will probably not be as enjoyable as native programming. The surface 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 REST API and overlay it on top of the native iOS map component. This overlay is pretty simple through code if you get a KML response. I know that this is MapQuest (yes, they still exist!) And Yahoo (although their API is currently in transition).

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

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

+8
source

Source: https://habr.com/ru/post/1390447/


All Articles