SectionProgress (API Reference)
Class SectionProgress
Indicates a user's progress along a Section.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe distance in meters from current location until the end of theSection.The estimated time in seconds from current location until the end of theSectionis reached, including traffic delays if available.The estimated traffic delay in seconds from current location until the end of theSectionis reached. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
remainingDistanceInMeters
public int remainingDistanceInMetersThe distance in meters from current location until the end of the
Section. Note that the value is accumulated per section, and that the last section contains the overall distance to the destination. Defaults to 0. -
remainingDuration
The estimated time in seconds from current location until the end of the
Sectionis reached, including traffic delays if available. Note that the value is accumulated per section, and that the last section contains the overall duration until the destination is reached. Defaults to 0 seconds. -
trafficDelay
The estimated traffic delay in seconds from current location until the end of the
Sectionis reached. Note that the value is accumulated per section, and that the last section contains the overall traffic delay until the destination is reached. The delay might be a negative value: Negative values indicate that the part of this section can be traversed faster than usual. Note that this is based on a delay value received at the moment of route calculation. Defaults to 0 seconds.
-
-
Constructor Details
-
SectionProgress
public SectionProgress()Creates a new instance.
-
-
Method Details