private boolean outsideBorder(double lat, double lon) {
        return (Double.compare(lat, MAX_LAT) > 0 ||
                Double.compare(lat, MIN_LAT) < 0 ||
                Double.compare(lon, MAX_LON) > 0 ||
                Double.compare(lon, MIN_LON) < 0);
    }