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