Represents all the information about a Connexionz platform that is pertinent to the app.
コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }