Package com.veeroute.lss.routing.api
Class RouteApi
java.lang.Object
com.veeroute.lss.routing.api.RouteApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintrunRouteCalculation(RouteTask routeTask) Route between points Constructing a route between points, taking into account the specified order and time at each stop.okhttp3.CallrunRouteCalculationAsync(RouteTask routeTask, ApiCallback<RouteResult> _callback) Route between points (asynchronously) Constructing a route between points, taking into account the specified order and time at each stop.okhttp3.CallrunRouteCalculationCall(RouteTask routeTask, ApiCallback _callback) Build call for runRouteCalculationrunRouteCalculationWithHttpInfo(RouteTask routeTask) Route between points Constructing a route between points, taking into account the specified order and time at each stop.voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
RouteApi
public RouteApi() -
RouteApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
runRouteCalculationCall
public okhttp3.Call runRouteCalculationCall(@Nonnull RouteTask routeTask, ApiCallback _callback) throws ApiException Build call for runRouteCalculation- Parameters:
routeTask- New request for route 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 route 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 -
-
runRouteCalculation
Route between points Constructing a route between points, taking into account the specified order and time at each stop. When specifying the departure time `departure_time`, traffic jams are taken into account. The response in `route.legs` returns the route segments between the points specified in the input `waypoints`.- Parameters:
routeTask- New request for route calculation. (required)- Returns:
- RouteResult
- 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 route 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 -
-
runRouteCalculationWithHttpInfo
public ApiResponse<RouteResult> runRouteCalculationWithHttpInfo(@Nonnull RouteTask routeTask) throws ApiException Route between points Constructing a route between points, taking into account the specified order and time at each stop. When specifying the departure time `departure_time`, traffic jams are taken into account. The response in `route.legs` returns the route segments between the points specified in the input `waypoints`.- Parameters:
routeTask- New request for route calculation. (required)- Returns:
- ApiResponse<RouteResult>
- 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 route 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 -
-
runRouteCalculationAsync
public okhttp3.Call runRouteCalculationAsync(@Nonnull RouteTask routeTask, ApiCallback<RouteResult> _callback) throws ApiException Route between points (asynchronously) Constructing a route between points, taking into account the specified order and time at each stop. When specifying the departure time `departure_time`, traffic jams are taken into account. The response in `route.legs` returns the route segments between the points specified in the input `waypoints`.- Parameters:
routeTask- New request for route 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 route 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 -
-