Click or drag to resize

TrafficFetcherGetLatestTraffic Method (TimeSpan)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Get the latest traffic data update from the list of ITrafficSource.

Namespace:  Telogis.GeoBase.Traffic
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public Traffic GetLatestTraffic(
	TimeSpan timeout
)

Parameters

timeout
Type: SystemTimeSpan
The maximum time to wait (block) for the traffic sources to be updated. Set to -1 milliseconds to wait indefinitely. Set to 0 to return immediately.

Return Value

Type: Traffic
Returns a Traffic based on the newly retrieved traffic data.
Exceptions
ExceptionCondition
TimeoutExceptionThrown if the timeout value is exceeded.
Remarks
Fetches the latest Traffic data. If timeout is TimeSpan.Zero this function will return immediately. The TrafficUpdated event may be fired multiple times as updates are received. If timeout is not TimeSpan.Zero this function will wait until all traffic sources have been updated or the timeout expires. The TrafficUpdated event may be fired multiple times as updates are received. Use -1 Milliseconds to indicate to wait indefinately.
See Also