Adds polyline snippet