Uses JSON's String constructor for polyline encoding

This commit is contained in:
Daniel J. Hofmann 2016-03-01 14:10:14 +01:00 committed by Patrick Niklaus
parent 4e02e8e1a0
commit 5a0ee6d1d8

View File

@ -46,9 +46,7 @@ std::string modeToString(const extractor::TravelMode mode);
template <typename ForwardIter> util::json::String makePolyline(ForwardIter begin, ForwardIter end) template <typename ForwardIter> util::json::String makePolyline(ForwardIter begin, ForwardIter end)
{ {
util::json::String polyline; return {encodePolyline(begin, end)};
polyline.value = encodePolyline(begin, end);
return polyline;
} }
template <typename ForwardIter> template <typename ForwardIter>