class LocationSet extends AbstractSet<Location> {

    public double largestDistance() {
        Set<GeoCoordinate> coordinates = coordinates();
        if (size() > 1 && size() - coordinates.size() > 0) {
            return GeoUtils.EARTH_MAX_DISTANCE_KM;
        }
        return GeoUtils.getLargestDistance(coordinates);
    }

    public  LocationSet(Collection<? extends Location> locations);

}