#ifndef POLYLINE_FORMATTER_HPP #define POLYLINE_FORMATTER_HPP #include "engine/segment_information.hpp" #include "osrm/json_container.hpp" #include #include 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 &geometry); // Does not encode the geometry in polyline format, instead returning an unencoded JSON object util::json::Array polylineUnencodedAsJSON(const std::vector &geometry); } } #endif /* POLYLINE_FORMATTER_HPP */