LinkExtraDataTrafficSignal Field |
Namespace: Telogis.GeoBase
// 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; }