Traffic
This is the public interface for the Traffic Data Provider in NavSDK. This interface can be passed to other components in NavSDK that work with traffic data.
Important: This is a Public Preview API. It may be changed or removed at any time.
Properties
Checks if we are currently connected to the cloud traffic provider.
Returns the count of traffic events currently known by the client.
Get the current status of the traffic service. To be notified about changes of the status, use addTrafficStatusChangedListener().
Functions
Adds a TrafficChangedListener, which reports on changes to the traffic situation.
Adds a TrafficStatusChangedListener, which reports changes in the status of the traffic service.
Synchronously retrieves traffic events in the area specified by the provided GeoBoundingBox. If the call succeeds, returns a TrafficEventsResult. If it fails, returns a TrafficError.
Asynchronously retrieves traffic events in the area specified by the provided GeoBoundingBox object and returns the result in the TrafficEventsCallback.
Removes the previously registered TrafficChangedListener.
Removes the previously registered TrafficStatusChangedListener.
Update the traffic client's Locale.