Click or drag to resize

ITrafficSourceGetTrafficInfo Method (String, DateTime, TimeZone)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Implemented by derived classes to resolve a given TMC code and DateTime to a TrafficInfo.

Namespace:  Telogis.GeoBase.Traffic
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
TrafficInfo GetTrafficInfo(
	string tmc,
	DateTime time,
	TimeZone timezone
)

Parameters

tmc
Type: SystemString
the TMC code to resolve
time
Type: SystemDateTime
the DateTime to get the TrafficInfo for. This will be UTC
timezone
Type: Telogis.GeoBaseTimeZone
The timezone this TMC code exists in. This can be used to convert the UTC time passed in to the local time for that TMC code

Return Value

Type: TrafficInfo
The TrafficInfo for the given TMC code at the specified DateTime
Remarks

The TMC codes supplied to an ITrafficSource in the GetTrafficInfo call have the format ABCCDEEEEE (for example: -126N04295) where:

A

direction of travel on link

+ = from reference end

- = to reference end

B

country code

C

location table number

D

direction

+ = in the positive direction and external to the problem location

- = in the negative direction and external to the problem location

P = in the positive direction and internal to the problem location

N = in the negative direction and internal to the problem location

E

location code

For many sources of traffic data, the initial + or - (labeled A above) will not be present and so can be stripped off.

See Also