/// <summary> /// This service provides shortest path queries with multiple via locations. /// It supports the computation of alternative paths as well as giving turn instructions. /// </summary> /// <param name="requestParams"></param> /// <returns></returns> public async Task <ViarouteResponse> RouteAsync(ViarouteRequest requestParams) { return(await SendAsync <ViarouteResponse>(RouteServiceName, requestParams.UrlParams)); }
/// <summary> /// This service provides shortest path queries with multiple via locations. /// It supports the computation of alternative paths as well as giving turn instructions. /// </summary> /// <param name="requestParams"></param> /// <returns></returns> public ViarouteResponse Route(ViarouteRequest requestParams) { return(Send <ViarouteResponse>(RouteServiceName, requestParams.UrlParams)); }
/// <summary> /// The trip plugin solves the famous Traveling Salesman Problem using a greedy heuristic (farest-insertion algorithm). /// The returned path does not have to be the shortest path, as TSP is NP-hard it is only an approximation. /// Note that if the input coordinates can not be joined by a single trip (e.g. the coordinates are on several disconnecte islands) /// multiple trips for each connected component are returned. /// Trip does not support computing alternatives. /// <param name="requestParams">Trip does not support computing alternatives</param> /// <returns></returns> public async Task <TripResponse> TripAsync(ViarouteRequest requestParams) { return(await SendAsync <TripResponse>(TripServiceName, requestParams.UrlParams)); }
/// <summary> /// The trip plugin solves the famous Traveling Salesman Problem using a greedy heuristic (farest-insertion algorithm). /// The returned path does not have to be the shortest path, as TSP is NP-hard it is only an approximation. /// Note that if the input coordinates can not be joined by a single trip (e.g. the coordinates are on several disconnecte islands) /// multiple trips for each connected component are returned. /// Trip does not support computing alternatives. /// <param name="requestParams">Trip does not support computing alternatives</param> /// <returns></returns> public TripResponse Trip(ViarouteRequest requestParams) { return(Send <TripResponse>(TripServiceName, requestParams.UrlParams)); }