Polylines actually not perfect and mess up with 71B and O12. It's something to do with the tail end of putPointsInOrder. This is because the location distance isn't geodesic.