Before You Begin
This 15-minute tutorial shows you how to configure graphical views in a Stream Analytics pipeline that lets you monitor public transportation in the Atlanta area.
This is the fourth tutorial in Monitoring Public Transportation Using Stream Analytics. Read them sequentially.
- Creating Artifacts for Your Stream Analytics Pipeline
- Building a Stream Analytics Pipeline
- Creating Business Rules in Your Stream Analytics Pipeline
- Configuring Graphical Views in Your Stream Analytics Pipeline
- Defining and Configuring a Target in Your Stream Analytics Pipeline
- Publishing Your Stream Analytics Pipeline
Background
Stream Analytics is a graphical tool with an intuitive web-based interface that enables you to explore, analyze, and manipulate streaming data sources in real time.
This traffic management solution uses GPS fleet data. This data is low cost, accurate, and it's created in real time. Its value for government sector customers is that this fleet data reduces congestion on roadways and enhances the traveling experience. The general features represented in this solution are real-time traffic analytics, speed violation tracking, and congestion detection. These features are combined with GPS streaming sensor feeds and historical trend data using map-based visualizations. This solution uses enterprise-grade Spark Streaming, Kafka open-source messaging, a highly scalable, extensible platform built with Stream Analytics.
Some of the key benefits with this solution are low-cost rollout with zero-road, network disruption, real-time operational intelligence, which is essential for meaningful congestion reduction, and an enhanced traveler experience, with a leading streaming big data technology.
What Do You Need?
Perform the tasks described in Creating Artifacts for Your Stream Analytics Pipeline.
Configure
a Geo Spatial Visualization
- On your SpeedViolation page, click the Visualizations tab.
- In the Add a Visualization drop-down list,
select Geo Spatial.
Description of the illustration t3_1.png - In the Create Geo Spatial Visualization
dialog box, on the Properties tab, enter or
select the following values:
- Name:
Driver Monitor
- Description:
Spatial Analytics for Vehicles in the Atlanta District
- Lat:
BUSlat
- Long:
BUSlong
- Key:
BUStripId
- On the Customizations tab, enter the
following values:
Field Value Style VIOLATION
RECKLESS
Orange arrow
VIOLATION MAJOR
Purple arrow
VIOLATION MINOR
Blue arrow
Description of the illustration t3_3.png
Description of the illustration t3_2.png
The map is updated instantly as the new data arrives. It shows
various driving behaviors.
- Name:

Configure
a Bar Chart Visualization
- On the SpeedViolation stage, click the Visualizations tab.
- In the Add a Visualization drop-down list, select Bar Chart.
- On the Properties tab, enter or select the
following values:
- Name:
CongestionPoints
- Description:
Provide a HWY view of activity
- Y Axis Field Selection:
AvgSpeed
- Axis Label:
Speed KMH
- X Axis Field Selection:
Bus_Hwy
- Axis Label:
HWY
Description of the illustration t3_4.png - Name:
View this chart to get insights that help you to identify the highways with the lower-than-average speeds that are currently experiencing traffic congestion.

Next
Tutorial
Defining and Configuring a Target in Your Stream Analytics Pipeline