diff --git a/include/engine/api/json_factory.hpp b/include/engine/api/json_factory.hpp index 9c1bee1d9..90e3f152e 100644 --- a/include/engine/api/json_factory.hpp +++ b/include/engine/api/json_factory.hpp @@ -46,9 +46,7 @@ std::string modeToString(const extractor::TravelMode mode); template util::json::String makePolyline(ForwardIter begin, ForwardIter end) { - util::json::String polyline; - polyline.value = encodePolyline(begin, end); - return polyline; + return {encodePolyline(begin, end)}; } template