Route

  • Route represents the navigation path of a trip, encompassing both active and remaining segments.

  • It includes an active route indicating the path between the driver and the consumer's immediate destination.

  • It also includes a remaining route, which is the path from the consumer's immediate stop to their final destination.

  • The Route class provides a getWaypoints method to access a list of LatLng points representing the route's path.

  • It can be constructed using a builder pattern via the builder() method.

public abstract class Route extends Object

Represents navigation route of a trip.

Active route - the route between the driver and the consumer's immediate destination. Remaining route - the route between the consumer's immediate destination and final destination.

Nested Class Summary

class Route.Builder Builds Route instance. 

Public Constructor Summary

Public Method Summary

static Route.Builder
abstract List<LatLng>
getWaypoints()
Represents sequenced waypoints on the route.

Inherited Method Summary

Public Constructors

public Route ()

Public Methods

public static Route.Builder builder ()

public abstract List<LatLng> getWaypoints ()

Represents sequenced waypoints on the route.