Package com.veeroute.lss.routing.api
Class MatrixApi
java.lang.Object
com.veeroute.lss.routing.api.MatrixApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintrunMatrixCalculation(MatrixTask matrixTask) Time-distance matrix Creating time-distance matrices between each pair of locations.okhttp3.CallrunMatrixCalculationAsync(MatrixTask matrixTask, ApiCallback<MatrixResult> _callback) Time-distance matrix (asynchronously) Creating time-distance matrices between each pair of locations.okhttp3.CallrunMatrixCalculationCall(MatrixTask matrixTask, ApiCallback _callback) Build call for runMatrixCalculationrunMatrixCalculationWithHttpInfo(MatrixTask matrixTask) Time-distance matrix Creating time-distance matrices between each pair of locations.voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
MatrixApi
public MatrixApi() -
MatrixApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
runMatrixCalculationCall
public okhttp3.Call runMatrixCalculationCall(@Nonnull MatrixTask matrixTask, ApiCallback _callback) throws ApiException Build call for runMatrixCalculation- Parameters:
matrixTask- New request for matrix calculation. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The matrix has been successfully built - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
runMatrixCalculation
Time-distance matrix Creating time-distance matrices between each pair of locations. The result of this method may slightly differ from the `route` method.- Parameters:
matrixTask- New request for matrix calculation. (required)- Returns:
- MatrixResult
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The matrix has been successfully built - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
runMatrixCalculationWithHttpInfo
public ApiResponse<MatrixResult> runMatrixCalculationWithHttpInfo(@Nonnull MatrixTask matrixTask) throws ApiException Time-distance matrix Creating time-distance matrices between each pair of locations. The result of this method may slightly differ from the `route` method.- Parameters:
matrixTask- New request for matrix calculation. (required)- Returns:
- ApiResponse<MatrixResult>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The matrix has been successfully built - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
runMatrixCalculationAsync
public okhttp3.Call runMatrixCalculationAsync(@Nonnull MatrixTask matrixTask, ApiCallback<MatrixResult> _callback) throws ApiException Time-distance matrix (asynchronously) Creating time-distance matrices between each pair of locations. The result of this method may slightly differ from the `route` method.- Parameters:
matrixTask- New request for matrix calculation. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The matrix has been successfully built - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-