use existing polyline encoder