Example #1
0
        public static List <Point> CastRouteToPathRoute(List <vwPath> routePaths)
        {
            var res   = new List <Point>();
            var point = new Point();

            foreach (var vwPathRoute in routePaths.OrderBy(x => x.RecommendPathSeq))
            {
                point     = new Point();
                point.Lat = vwPathRoute.RecommendLat.ToString("G29");
                point.Lng = vwPathRoute.RecommendLng.ToString("G29");
                res.Add(point);
            }
            return(res);
        }
Example #2
0
        public static List <Point> CastRouteToPathRoute(List <RouteRequestGRoute> routePaths)
        {
            var res   = new List <Point>();
            var point = new Point();

            foreach (var vwPathRoute in routePaths.OrderBy(x => x.RRRSeq))
            {
                point     = new Point();
                point.Lat = vwPathRoute.RRRLatitude.ToString("G29");
                point.Lng = vwPathRoute.RRRLongitude.ToString("G29");
                res.Add(point);
            }
            return(res);
        }