Switching line to LineString to trace out the route