/** * 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 MatrixResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public MatrixResponse matrixPost(String key, MatrixRequest body) throws ApiException { ApiResponse<MatrixResponse> resp = matrixPostWithHttpInfo(key, body); return resp.getData(); }
/** * 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 MatrixResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public MatrixResponse matrixPost(String key, MatrixRequest body) throws ApiException { ApiResponse<MatrixResponse> resp = matrixPostWithHttpInfo(key, body); return resp.getData(); }
/** * 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 MatrixResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public MatrixResponse matrixPost(String key, MatrixRequest body) throws ApiException { ApiResponse<MatrixResponse> resp = matrixPostWithHttpInfo(key, body); return resp.getData(); }