class GeographicUtilities {

    static List<LatLonAlt> removeDuplicates(List<? extends LatLonAlt> points)
    {
        List<LatLonAlt> list = New.list(points.size());
        LatLonAlt lastPoint = null;
        for (LatLonAlt point : points)
        {
            if (!point.equals(lastPoint))
            {
                list.add(point);
                lastPoint = point;
            }
        }
        return list;
    }

    private  GeographicUtilities();

}