osrm-backend/include/engine/polyline_formatter.hpp

25 lines
694 B
C++
Raw Normal View History

#ifndef POLYLINE_FORMATTER_HPP
#define POLYLINE_FORMATTER_HPP
2014-11-28 04:07:06 -05:00
#include "engine/segment_information.hpp"
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
{
// Encodes geometry into polyline format, returning an encoded JSON object
// See: https://developers.google.com/maps/documentation/utilities/polylinealgorithm
util::json::String polylineEncodeAsJSON(const std::vector<SegmentInformation> &geometry);
2016-01-05 10:51:13 -05:00
// Does not encode the geometry in polyline format, instead returning an unencoded JSON object
util::json::Array polylineUnencodedAsJSON(const std::vector<SegmentInformation> &geometry);
2016-01-05 10:51:13 -05:00
}
}
#endif /* POLYLINE_FORMATTER_HPP */