SDK for iOS Developer's Guide

Traffic History

Traffic History allows the user to obtain map tiles that show the typical traffic pattern for a specific time point during the week. To display Traffic History tiles, create an instance of HistoricalTrafficRasterTileSource by specifying a day of the week and a time. For example, to show the traffic tiles for Wednesdays at 5:40pm, add the following:
NMAHistoricalTrafficTileLayer *historyTileLayer =
  [[NMAHistoricalTrafficTileLayer alloc]initForWeekDay:4 hour:17 minute:40];
[mapView addMapTileLayer:historyTileLayer];
Figure 1. Traffic History in San Francisco