ProjectedRouteEta

  • ProjectedRouteEta provides estimated time of arrival (ETA) information for the projected route on the Consumer Map UI.

  • This ETA data is calculated based on the vehicle's real-time movement along the route's polyline, primarily focusing on the segment to the next waypoint.

  • It offers methods to access the estimated distance to the next waypoint in meters and the remaining time in seconds.

  • Developers can utilize the ProjectedRouteEta.Builder to construct instances of ProjectedRouteEta.

public abstract class ProjectedRouteEta extends Object

Represents the ETA information of the projected route on Consumer Map UI.

The projected route is the polyline drawn until the next waypoint and data is calculated based on the vehicle movement while animating on the route polyline.

Nested Class Summary

class ProjectedRouteEta.Builder Builds ProjectedRouteEta instance. 

Public Constructor Summary

Public Method Summary

static ProjectedRouteEta.Builder
abstract Double
getDistanceMeters()
Represents the distance in meters to the next waypoint.
abstract Long
getRemainingTimeSeconds()
Represents the remaining time in seconds until arriving in the next waypoint.

Inherited Method Summary

Public Constructors

public ProjectedRouteEta ()

Public Methods

public static ProjectedRouteEta.Builder builder ()

public abstract Double getDistanceMeters ()

Represents the distance in meters to the next waypoint.

public abstract Long getRemainingTimeSeconds ()

Represents the remaining time in seconds until arriving in the next waypoint.