Example #1
0
        public Intersection GetIntersection()
        {
            MapObjectProperties mapObjectProperties = GetMapObjectProperties();

            if (mapObjectProperties != null && mapObject.GetMapObjectType() == MapObjectType.STOPLIGHT)
            {
                StopLight stopLight = (StopLight)mapObjectProperties;
                return(stopLight.GetControllingIntersection());
            }
            return(null);
        }