Yes, the traffic map service can be used with ArcGIS Maps SDK for JavaScript to create fully customized web mapping apps or with ArcGIS Maps SDKs for Native Apps to build apps for desktop and mobile devices. When using the APIs, the URL for the traffic map service is specified as https://traffic.arcgis.com/arcgis/rest/services/World/Traffic/MapServer .
You can use the traffic map service to request an image containing traffic visualization for your area of interest at a given time instant. The traffic service generates an image based on the one or more layers from the service that represent the area of interest. The layers in the service represent traffic speeds and traffic incident information for a region. A region is composed of one or more countries that support traffic visualization. The data coverage topic provides the classification of countries into regions and can be used to determine the region corresponding to the area of interest.
For each region, the traffic map service contains a layer named Traffic that represents street speeds based on both historical and live traffic where available. Historical traffic is based on the average of observed speeds over the past year. The traffic map service also contains a layer named Live Traffic that represents only those streets that support live traffic speeds. Depending on your app, you may want to request an image with one of the two layers being visible. For each region that supports traffic incidents, the traffic map service provides three layers representing traffic incidents. The layers become visible at certain map scales and provide symbology that is relevant at the given scale. For example, the Traffic Incidents Overview layer only symbolizes critical and major incidents. However, the Traffic Incidents Detailed layer symbolizes critical, major, minor, and low-impact incidents.
Additionally, we have a traffic web map to visualize real-time traffic speeds and incidents such as accidents, construction sites, or street closures. Traffic visualization displays information about how travel speeds on specific road segments change over time. The traffic incidents in the map service provide the location of the incidents and some attributes such as the severity, the expected start and end time, as well as the description of the incident. The traffic speed and incident data is updated every five minutes.
The traffic web map acts as a good background layer to display the results from the Routing service. The traffic data used by the traffic map service is also used by the Routing service when performing analysis. If you want to emphasize why a particular route was returned by the route service, you can display the traffic map along with the route to show areas of traffic congestion that influenced the choice of roads used by the route.
The traffic data used by the service is updated every five minutes. Each traffic update also includes traffic speed predictions for the next one hour. This allows you to visualize traffic for future planning. The service archives the traffic information for up to one hour. This allows you to visualize traffic speeds within an two-hour time window. Traffic incidents are not archived and are refreshed with every update. For more information, visit the World Traffic Map.