Added flatbuffers support to the PluginBase::Error

This changes BREAKS osrm.
This commit is contained in:
Denis Chaplygin
2019-08-05 13:46:13 +03:00
parent 56406e80ce
commit 7ddda105a3
5 changed files with 34 additions and 6 deletions
+6
View File
@@ -97,6 +97,12 @@ TableService::RunQuery(std::size_t prefix_length, std::string &query, osrm::engi
}
BOOST_ASSERT(parameters->IsValid());
if (parameters->format)
{
if (parameters->format == engine::api::BaseParameters::OutputFormatType::FLATBUFFERS) {
result = flatbuffers::FlatBufferBuilder();
}
}
return BaseService::routing_machine.Table(*parameters, result);
}
}