SectionProgress
public struct SectionProgress : Hashable
Indicates a user’s progress along a Section.
-
The 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.Declaration
Swift
public var remainingDistanceInMeters: Int32 -
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.Declaration
Swift
public var remainingDuration: TimeInterval -
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.Declaration
Swift
public var trafficDelay: TimeInterval -
Creates a new instance.
Declaration
Swift
public init(remainingDistanceInMeters: Int32 = 0, remainingDuration: TimeInterval = 0, trafficDelay: TimeInterval = 0)