private static bool ShouldAppendDirection(ConnexionzPlatform platform, List<ConnexionzPlatform> platforms) { if (platform.Name == "Downtown Transit Center") return false; bool existsSameNamedStop = platforms.Any(p => p.PlatformNo != platform.PlatformNo && p.Name == platform.Name); return existsSameNamedStop; }
public BusStop(ConnexionzPlatform platform, List<string> routeNames, bool appendDirection) { ID = platform.PlatformNo; Name = platform.Name + (appendDirection ? " " + ToDirection(platform.BearingToRoad) : string.Empty); Bearing = platform.BearingToRoad; Lat = platform.Lat; Long = platform.Long; RouteNames = routeNames; }