예제 #1
0
        /// <summary>
        /// Builds a route.
        /// </summary>
        public static Result <Route> TryBuild <T>(RouterDb db, Profile profile, RouterPoint source, RouterPoint target, EdgePath <T> path)
        {
            var pathList = new List <uint>();

            path.AddToListAsVertices(pathList);
            return(CompleteRouteBuilder.TryBuild(db, profile, source, target, pathList));
        }
예제 #2
0
        /// <summary>
        /// Builds a route.
        /// </summary>
        public static Result <Route> TryBuild(RouterDb db, Profile profile, Func <ushort, Profiles.Factor> getFactor, RouterPoint source, RouterPoint target, EdgePath <float> path)
        {
            var pathList = new List <uint>();

            path.AddToListAsVertices(pathList);
            return(FastRouteBuilder.TryBuild(db, profile, getFactor, source, target, pathList));
        }