osrm-backend/include/engine/polyline_formatter.hpp

26 lines
470 B
C++
Raw Normal View History

#ifndef POLYLINE_FORMATTER_HPP
#define POLYLINE_FORMATTER_HPP
2014-11-28 04:07:06 -05:00
2016-01-02 11:13:44 -05:00
#include "osrm/json_container.hpp"
2014-11-28 04:07:06 -05:00
#include <string>
#include <vector>
2016-01-05 10:51:13 -05:00
namespace osrm
{
namespace engine
{
struct SegmentInformation;
2014-11-28 04:07:06 -05:00
struct PolylineFormatter
{
2016-01-05 10:51:13 -05:00
util::json::String printEncodedString(const std::vector<SegmentInformation> &polyline) const;
2014-11-28 04:07:06 -05:00
2016-01-05 10:51:13 -05:00
util::json::Array printUnencodedString(const std::vector<SegmentInformation> &polyline) const;
2014-11-28 04:07:06 -05:00
};
2016-01-05 10:51:13 -05:00
}
}
#endif /* POLYLINE_FORMATTER_HPP */