Make PolylineCompresser's encode and decode free standing functions

This commit is contained in:
Daniel J. Hofmann
2016-01-08 13:00:24 +01:00
committed by Patrick Niklaus
parent c590596dbe
commit c65dd16460
5 changed files with 41 additions and 45 deletions
+1 -2
View File
@@ -18,8 +18,7 @@ BOOST_AUTO_TEST_CASE(decode)
{
// Polyline string for the 5 coordinates
const std::string polyline = "_gjaR_gjaR_pR_ibE_pR_ibE_pR_ibE_pR_ibE";
PolylineCompressor pc;
std::vector<util::FixedPointCoordinate> coords = pc.decode_string(polyline);
const auto coords = polylineDecode(polyline);
// Test coordinates; these would be the coordinates we give the loc parameter,
// e.g. loc=10.00,10.0&loc=10.01,10.1...