Click or drag to resize

LinkExtraDataTrafficSignal Field

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Existence of traffic signals at either end of this link.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.87.0.0
Syntax
public TrafficSignalLocation TrafficSignal

Field Value

Type: TrafficSignalLocation
Remarks
Traffic signal information is only available with Premium data, and only for road classes 1 through 4. Traffic signal information is available through GeoStream only with the link from ReverseGeoCodeFull. This data is compatible with GeoBase versions 3.x and greater.
Examples
C#
// Get a street link on Street of the Golden Lantern in Dana Point, Ca using ReverseGeoCodeFull
Telogis.GeoBase.StreetLink currentLink = Telogis.GeoBase.GeoCoder.ReverseGeoCodeFull(new LatLon(33.476036, -117.697573)).StreetLink;

// Get the TrafficSignal and compare it with TrafficSignalLocation
switch (currentLink.ExtraData.TrafficSignal) {
    case Telogis.GeoBase.TrafficSignalLocation.None:
    Console.WriteLine("There is no traffic signal at either end of this StreetLink.");
    break;
    case Telogis.GeoBase.TrafficSignalLocation.NonReference:
    Console.WriteLine("There is a traffic signal that can be reached by traveling to the nonreference end of this StreetLink.");
    break;
    case Telogis.GeoBase.TrafficSignalLocation.Reference:
    Console.WriteLine("There is a traffic signal that can be reached by traveling to the reference end of this StreetLink.");
    break;
    case Telogis.GeoBase.TrafficSignalLocation.Both:
    Console.WriteLine("There are traffic signals at both ends of this StreetLink.");
    break;
}
See Also