TrafficGetSpeed Method (UInt64, TrafficDirectionType, DateTime, TimeZone, SpeedUnit) | |
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, link direction and timezone.
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,
TimeZone timeZone,
SpeedUnit units
)
Public Function GetSpeed (
link_id As ULong,
direction As TrafficDirectionType,
time As DateTime,
timeZone As TimeZone,
units As SpeedUnit
) As Double
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. - timeZone
- Type: Telogis.GeoBaseTimeZone
The time zone the link exists in 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.
Remarks The speed along a link may vary at different times (for example, rush-hour traffic).
See Also