Skip to content

Commit bb89524

Browse files
authored
Merge pull request #106164 from farah-alyasari/quickfixes
Quickfixes
2 parents 2a6c6e2 + bb7f05d commit bb89524

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

articles/azure-maps/how-to-show-traffic-android.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ manager: philmea
1212

1313
# Show traffic data on the map using Azure Maps Android SDK
1414

15-
Flow data and incidents data are the two types of traffic data that can be displayed on the map. This guide shows you how to display both of these traffic data. Incidents data consists of point and line-based data for things such as constructions, road closures, and accidents. Flow data shows metrics about the flow of traffic on the road.
15+
Flow data and incidents data are the two types of traffic data that can be displayed on the map. This guide shows you how to display both types of traffic data. Incidents data consists of point and line-based data for things such as constructions, road closures, and accidents. Flow data shows metrics about the flow of traffic on the road.
1616

1717
## Prerequisites
1818

19-
Before you can show traffic on the map, you need to install [Azure Maps Android SDK](https://docs.microsoft.com/azure/azure-maps/how-to-use-android-map-control-library) and load a map.
19+
Before you can show traffic on the map, you need to [make an Azure Account](quick-demo-map-app.md#create-an-account-with-azure-maps)and [obtain a subscription key](quick-demo-map-app.md#get-the-primary-key-for-your-account). Then, you need to install the [Azure Maps Android SDK](https://docs.microsoft.com/azure/azure-maps/how-to-use-android-map-control-library) and load a map.
2020

2121
## Incidents traffic data
2222

@@ -33,7 +33,7 @@ protected void onCreate(Bundle savedInstanceState) {
3333
super.onCreate(savedInstanceState);
3434
mapControl.getMapAsync(map - > {
3535
map.setTraffic(incidents(true));
36-
}
36+
}
3737
}
3838
```
3939

@@ -58,8 +58,9 @@ Use the following code snippet to set traffic flow data. Similar to the code in
5858
```java
5959
protected void onCreate(Bundle savedInstanceState) {
6060
super.onCreate(savedInstanceState);
61-
mapControl.getMapAsync(map ->
61+
mapControl.getMapAsync(map -> {
6262
map.setTraffic(flow(TrafficFlow.RELATIVE)));
63+
}
6364
}
6465
```
6566

0 commit comments

Comments
 (0)