ConsumerController.OnProjectedRouteUpdateCallback

  • ConsumerController.OnProjectedRouteUpdateCallback is triggered when the vehicle marker updates its position on the projected route.

  • Projected ETAs, based on the vehicle's animation on the map, might lag behind the real-time ETA from TripInfo.

  • The onProjectedRouteUpdate method provides the projected ETA via the ProjectedRouteEta object.

public static abstract class ConsumerController.OnProjectedRouteUpdateCallback extends Object

Callback invoked when the vehicle marker moves along the projected route polyline.

Note: Projected ETAs are calculated based on the vehicle animation on the map UI. Due to the nature of the animation, the projected ETA is always behind the current ETA returned by TripInfo.

Public Constructor Summary

Public Method Summary

void
onProjectedRouteUpdate(ProjectedRouteEta projectedRouteEta)
Called with projected ETA based on the vehicle movement on Consumer Map UI.

Inherited Method Summary

Public Constructors

public OnProjectedRouteUpdateCallback ()

Public Methods

public void onProjectedRouteUpdate (ProjectedRouteEta projectedRouteEta)

Called with projected ETA based on the vehicle movement on Consumer Map UI.