| 119 | } |
| 120 | |
| 121 | void 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 | |
| 129 | Matrices HttpWrapper::get_matrices(const std::vector<Location>& locs) const { |
| 130 | const std::string query = this->build_query(locs, _matrix_service); |
nothing calls this directly
no test coverage detected