The Traffic example app shows how to toggle traffic flow and traffic incidents visualization on a map and how to use the TrafficEngine to query such data in realtime, for example, along a route. You can find how this is done in TrafficExample.dart and RoutingExample.dart.
-
Set your HERE SDK credentials programmatically in
lib/main.dart
. -
Unzip the HERE SDK plugin to the plugins folder inside this project. Name the folder 'here_sdk':
plugins/here_sdk
. -
Start an emulator or simulator and execute
flutter run
from the app's directory - or run the app from within your IDE.
More information can be found in the Get Started section of the Developer Guide.