polyline is used instead of points. much faster.