MCPcopy Create free account
hub / github.com/VROOM-Project/vroom / parse_response

Method parse_response

src/routing/http_wrapper.cpp:121–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void HttpWrapper::parse_response(rapidjson::Document& json_result,
122 const std::string& json_content) {
123 json_result.Parse(json_content.c_str());
124 if (json_result.HasParseError()) {
125 throw RoutingException("Failed to parse routing response.");
126 }
127}
128
129Matrices HttpWrapper::get_matrices(const std::vector<Location>& locs) const {
130 const std::string query = this->build_query(locs, _matrix_service);

Callers

nothing calls this directly

Calls 1

RoutingExceptionClass · 0.85

Tested by

no test coverage detected