Class MatrixApi

java.lang.Object
com.veeroute.lss.routing.api.MatrixApi

public class MatrixApi extends Object
  • Constructor Details

    • MatrixApi

      public MatrixApi()
    • MatrixApi

      public MatrixApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • 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

      public MatrixResult runMatrixCalculation(@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:
      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 -