getTrafficEvents
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP] )
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.
Return
If the call succeeds, returns a TrafficEventsResult. If it fails, returns a TrafficError.
Parameters
boundingBox
The area in which to retrieve the traffic events.
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP] )
Asynchronously retrieves traffic events in the area specified by the provided GeoBoundingBox object and returns the result in the TrafficEventsCallback.
Return
cancellable operation.
Parameters
boundingBox
The area in which to retrieve the traffic events.
callback
The TrafficEventsCallback invoked once all traffic events in the area have been retrieved, either successfully or with an error. The callback will be executed on the main thread.