[traffic] Implement HttpTraffSource

Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
mvglasow
2025-07-20 13:14:23 +03:00
parent a20d1453e0
commit 3f58c6ee20
8 changed files with 549 additions and 8 deletions

View File

@@ -105,4 +105,17 @@ void GenerateTraff(std::map<std::string, traffxml::TraffMessage> const & message
* @return A string of XML `filter` elements.
*/
std::string FiltersToXml(std::vector<m2::RectD> & bboxRects);
/**
* @brief Parses the response to a TraFF request.
*
* The response must comply with TraFF 0.8. The root element must be `response`.
*
* If a parsing error occurs, the response returned will have its `m_status` member set to
* `ResponseStatus::Invalid`.
*
* @param responseXml The response, as a string in XML format.
* @return The parsed response.
*/
TraffResponse ParseResponse(std::string const & responseXml);
} // namespace traffxml