UNPKG

@veeroute/lss-routing-angular

Version:

OpenAPI client for @veeroute/lss-routing-angular

41 lines (40 loc) 2.32 kB
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { MatrixResultRouting } from '../model/matrixResult'; import { Configuration } from '../configuration'; import { MatrixServiceInterface, RunMatrixCalculationRequestParams } from './matrixServiceInterface'; import * as i0 from "@angular/core"; export declare class MatrixService implements MatrixServiceInterface { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration); private addToHttpParams; private addToHttpParamsRecursive; /** * Time-distance matrix * Creating time-distance matrices between each pair of locations. The result of this method may slightly differ from the &#x60;route&#x60; method. * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ runMatrixCalculation(requestParameters: RunMatrixCalculationRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable<MatrixResultRouting>; runMatrixCalculation(requestParameters: RunMatrixCalculationRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpResponse<MatrixResultRouting>>; runMatrixCalculation(requestParameters: RunMatrixCalculationRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpEvent<MatrixResultRouting>>; static ɵfac: i0.ɵɵFactoryDeclaration<MatrixService, [null, { optional: true; }, { optional: true; }]>; static ɵprov: i0.ɵɵInjectableDeclaration<MatrixService>; }