/// <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)); }
/// <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)); }