Class RouteProgress.Builder
-
- All Implemented Interfaces:
public final class RouteProgress.BuilderBuilder for RouteProgress
-
-
Constructor Summary
Constructors Constructor Description RouteProgress.Builder(DirectionsRoute route)
-
Method Summary
Modifier and Type Method Description final RouteProgress.BuilderrouteGeometryWithBuffer(Geometry routeGeometryWithBuffer)Current DirectionsRoute geometry with a buffer that encompasses visible tile surface are while navigating. final RouteProgress.BuilderbannerInstructions(BannerInstructions bannerInstructions)Current banner instruction. final RouteProgress.BuildervoiceInstructions(VoiceInstructions voiceInstructions)Current voice instruction. final RouteProgress.BuildercurrentState(RouteProgressState currentState)The current state of progress along the route. final RouteProgress.BuildercurrentLegProgress(RouteLegProgress legProgress)RouteLegProgress object with information about the particular leg the user is currently on. final RouteProgress.BuilderupcomingStepPoints(List<Point> upcomingStepPoints)The list of points that represent the upcoming step geometry. final RouteProgress.BuilderinTunnel(Boolean inTunnel)true if in a tunnel, false otherwise final RouteProgress.BuilderdistanceRemaining(Float distanceRemaining)The distance remaining in meters until the user reaches the end of the route. final RouteProgress.BuilderdistanceTraveled(Float distanceTraveled)Total distance traveled in meters along the route. final RouteProgress.BuilderdurationRemaining(Double durationRemaining)The duration remaining in seconds until the user reaches the end of the route final RouteProgress.BuilderfractionTraveled(Float fractionTraveled)The fraction traveled along the current route. final RouteProgress.BuilderremainingWaypoints(Integer remainingWaypoints)Number of waypoints remaining on the current route final RouteProgress.BuilderupcomingRouteAlerts(List<UpcomingRouteAlert> upcomingRouteAlerts)List of upcoming route alerts with distances from current location to each of them. final RouteProgressbuild()Build new instance of RouteProgress
-
-
-
Method Detail
-
routeGeometryWithBuffer
final RouteProgress.Builder routeGeometryWithBuffer(Geometry routeGeometryWithBuffer)
Current DirectionsRoute geometry with a buffer that encompasses visible tile surface are while navigating.
This Geometry is ideal for offline downloads of map or routing tile data.
-
bannerInstructions
final RouteProgress.Builder bannerInstructions(BannerInstructions bannerInstructions)
Current banner instruction.
-
voiceInstructions
final RouteProgress.Builder voiceInstructions(VoiceInstructions voiceInstructions)
Current voice instruction.
-
currentState
final RouteProgress.Builder currentState(RouteProgressState currentState)
The current state of progress along the route. Provides route and location tracking information.
-
currentLegProgress
final RouteProgress.Builder currentLegProgress(RouteLegProgress legProgress)
RouteLegProgress object with information about the particular leg the user is currently on.
-
upcomingStepPoints
final RouteProgress.Builder upcomingStepPoints(List<Point> upcomingStepPoints)
The list of points that represent the upcoming step geometry.
-
inTunnel
final RouteProgress.Builder inTunnel(Boolean inTunnel)
true if in a tunnel, false otherwise
-
distanceRemaining
final RouteProgress.Builder distanceRemaining(Float distanceRemaining)
The distance remaining in meters until the user reaches the end of the route.
-
distanceTraveled
final RouteProgress.Builder distanceTraveled(Float distanceTraveled)
Total distance traveled in meters along the route.
-
durationRemaining
final RouteProgress.Builder durationRemaining(Double durationRemaining)
The duration remaining in seconds until the user reaches the end of the route
-
fractionTraveled
final RouteProgress.Builder fractionTraveled(Float fractionTraveled)
The fraction traveled along the current route. This is a float value between 0 and 1 and isn't guaranteed to reach 1 before the user reaches the end of the route.
-
remainingWaypoints
final RouteProgress.Builder remainingWaypoints(Integer remainingWaypoints)
Number of waypoints remaining on the current route
-
upcomingRouteAlerts
final RouteProgress.Builder upcomingRouteAlerts(List<UpcomingRouteAlert> upcomingRouteAlerts)
List of upcoming route alerts with distances from current location to each of them.
-
build
final RouteProgress build()
Build new instance of RouteProgress
-
-