2014-11-28 06:13:18 -05:00
|
|
|
#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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-11-28 06:13:18 -05:00
|
|
|
#endif /* POLYLINE_FORMATTER_HPP */
|