Traffic
Entry point to perform traffic actions.
Important: This is a Public Preview API. It may be changed or removed at any time.
Functions
Link copied to clipboard
Adds a TrafficChangedListener, which reports on changes to the traffic situation.
Link copied to clipboard
abstract fun getTrafficEvents(boundingBox: GeoBoundingBox): Result<TrafficEventsResult, TrafficError>
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.
abstract fun getTrafficEvents(boundingBox: GeoBoundingBox, callback: TrafficEventsCallback): Cancellable
Asynchronously retrieves traffic events in the area specified by the provided GeoBoundingBox object and returns the result in the TrafficEventsCallback.
Link copied to clipboard
Removes the previously registered TrafficChangedListener.
Link copied to clipboard
Update the traffic client's Locale.