Passed ResultT down to engine plugins, so now they can form replies in different formats.
This commit is contained in:
@@ -42,7 +42,7 @@ std::string getWrongOptionHelp(const engine::api::MatchParameters ¶meters)
|
||||
} // anon. ns
|
||||
|
||||
engine::Status
|
||||
MatchService::RunQuery(std::size_t prefix_length, std::string &query, ResultT &result)
|
||||
MatchService::RunQuery(std::size_t prefix_length, std::string &query, osrm::engine::api::ResultT &result)
|
||||
{
|
||||
result = util::json::Object();
|
||||
auto &json_result = result.get<util::json::Object>();
|
||||
@@ -68,7 +68,7 @@ MatchService::RunQuery(std::size_t prefix_length, std::string &query, ResultT &r
|
||||
}
|
||||
BOOST_ASSERT(parameters->IsValid());
|
||||
|
||||
return BaseService::routing_machine.Match(*parameters, json_result);
|
||||
return BaseService::routing_machine.Match(*parameters, result);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user