Mapbox polyline class is final so it can't be extended. This class is a wrapper for polyline and other fields we need.