public interface TrafficResponseListener extends BaseResponseListener
Modifier and Type | Method and Description |
---|---|
void |
onTrafficRerouteFound(Route route)
Called when a faster, alternate route has been found.
|
void |
onTrafficUpdated(java.util.Map<java.lang.String,Traffic> trafficUpdatesByLegId)
Called when a traffic update is received for one or more leg of the current route being navigated.
|
onRequestFailed, onRequestMade
void onTrafficUpdated(java.util.Map<java.lang.String,Traffic> trafficUpdatesByLegId)
Note that traffic conditions may or may not have actually changed between subsequent invocations of this listener method -- i.e. for any given route-leg, the same values might be delivered more than once via this method.
trafficUpdatesByLegId
- the Traffic
updates, keyed by their corresponding leg-IDs.void onTrafficRerouteFound(Route route)
route
- the alternate route that is recommended over the current route.