ETACalculatorTimeRemaining Method | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Calculate the estimated time remaining for this route.
Namespace:
Telogis.GeoBase
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public TimeSpan TimeRemaining(
DateTime currentTime,
double speed,
TimeSpan currentLinkStartTime,
TimeSpan currentLinkEndTime,
double currentLinkLength,
double distanceToNextIntersection
)
Public Function TimeRemaining (
currentTime As DateTime,
speed As Double,
currentLinkStartTime As TimeSpan,
currentLinkEndTime As TimeSpan,
currentLinkLength As Double,
distanceToNextIntersection As Double
) As TimeSpan
Parameters
- currentTime
- Type: SystemDateTime
The current time. - speed
- Type: SystemDouble
The speed (rad/s) that we expect to travel along the current link.
Must be > 0. - currentLinkStartTime
- Type: SystemTimeSpan
The expected time for the start of the current link. - currentLinkEndTime
- Type: SystemTimeSpan
The expected time for the end of the current link. - currentLinkLength
- Type: SystemDouble
The length (rad) of the current link. - distanceToNextIntersection
- Type: SystemDouble
The distance (rad) to the next intersection.
Return Value
Type:
TimeSpanThe estimated time remaining for this route.
See Also