Click or drag to resize

TrafficGetSpeed Method (UInt64, TrafficDirectionType, DateTime, SpeedUnit)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Query each of this Traffic's TrafficSources to get the speed along a given link at a given time and link direction.

Namespace:  Telogis.GeoBase.Traffic
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public double GetSpeed(
	ulong link_id,
	TrafficDirectionType direction,
	DateTime time,
	SpeedUnit units
)

Parameters

link_id
Type: SystemUInt64
The link to get the speed of, specified as a link ID.
direction
Type: Telogis.GeoBase.TrafficTrafficDirectionType
The direction of the link as a TrafficDirectionType.
time
Type: SystemDateTime
The time of day, as a DateTime.
units
Type: Telogis.GeoBaseSpeedUnit
>The units in which to return the speed.

Return Value

Type: Double
>-1 if the link could not be resolved to a speed, otherwise the traffic speed.
See Also