Rafael Jimeno
Rafael Jimeno

Reputation: 636

Show traffic like in Maps app from iphone using MKMapView

I've noticed that the maps app integrated in iOS can show the traffic, but is there a way to do that using MKMapView? or that functionality only appears in that app?.

Any help please?

Upvotes: 2

Views: 1485

Answers (2)

Ric Santos
Ric Santos

Reputation: 16467

The data Apple uses appears to be sourced from TomTom and others. If you can find an API that provides traffic data, you can use a MKPolyline to render the data.

Upvotes: 1

Srikar Appalaraju
Srikar Appalaraju

Reputation: 73658

As far as I know you can't show the traffic information using the MK framework.

To achieve the results you want I would offer to use the third party resources, Google Maps API for example, and use UIWebView to present a customized map. Google Maps JavaScript API v3 TrafficLayer

Upvotes: 0

Related Questions