/** * Matrix API Post * The GET request has an URL length limitation, which hurts for many locations per request. In those cases use a HTTP POST request with JSON data as input. The only parameter in the URL will be the key which stays in the URL. Both request scenarios are identically except that all singular parameter names are named as their plural for a POST request. * @param key Get your key at graphhopper.com (required) * @param body (optional) * @return ApiResponse<MatrixResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ApiResponse<MatrixResponse> matrixPostWithHttpInfo(String key, MatrixRequest body) throws ApiException { com.squareup.okhttp.Call call = matrixPostValidateBeforeCall(key, body, null, null); Type localVarReturnType = new TypeToken<MatrixResponse>(){}.getType(); return apiClient.execute(call, localVarReturnType); }
/** * Matrix API Post * The GET request has an URL length limitation, which hurts for many locations per request. In those cases use a HTTP POST request with JSON data as input. The only parameter in the URL will be the key which stays in the URL. Both request scenarios are identically except that all singular parameter names are named as their plural for a POST request. * @param key Get your key at graphhopper.com (required) * @param body (optional) * @return ApiResponse<MatrixResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ApiResponse<MatrixResponse> matrixPostWithHttpInfo(String key, MatrixRequest body) throws ApiException { com.squareup.okhttp.Call call = matrixPostValidateBeforeCall(key, body, null, null); Type localVarReturnType = new TypeToken<MatrixResponse>(){}.getType(); return apiClient.execute(call, localVarReturnType); }
/** * Matrix API Post * The GET request has an URL length limitation, which hurts for many locations per request. In those cases use a HTTP POST request with JSON data as input. The only parameter in the URL will be the key which stays in the URL. Both request scenarios are identically except that all singular parameter names are named as their plural for a POST request. * @param key Get your key at graphhopper.com (required) * @param body (optional) * @return ApiResponse<MatrixResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ApiResponse<MatrixResponse> matrixPostWithHttpInfo(String key, MatrixRequest body) throws ApiException { com.squareup.okhttp.Call call = matrixPostValidateBeforeCall(key, body, null, null); Type localVarReturnType = new TypeToken<MatrixResponse>(){}.getType(); return apiClient.execute(call, localVarReturnType); }