Added output format parser to the Route service.

It is possible now to choose between json and flatbuffers (not yet implemented) output format.
Only route service is supported atm.
This commit is contained in:
Denis Chaplygin
2019-07-31 15:25:15 +03:00
parent 88979d0d86
commit 59ca7840f4
3 changed files with 16 additions and 1 deletions
+7
View File
@@ -70,12 +70,19 @@ struct BaseParameters
Any
};
enum class OutputFormatType
{
JSON,
FLATBUFFERS
};
std::vector<util::Coordinate> coordinates;
std::vector<boost::optional<Hint>> hints;
std::vector<boost::optional<double>> radiuses;
std::vector<boost::optional<Bearing>> bearings;
std::vector<boost::optional<Approach>> approaches;
std::vector<std::string> exclude;
boost::optional<OutputFormatType> format = OutputFormatType::JSON;
// Adds hints to response which can be included in subsequent requests, see `hints` above.
bool generate_hints = true;