@NonNull
    public static SearchResult getBatchOfStoredCaches(final Geopoint sortCenter, final int filterListId, final GeocacheFilter filter, final CacheComparator sort, final boolean sortInverse, final int limit) {
        return withAccessLock(() -> {
            final Set<String> geocodes = loadBatchOfStoredGeocodes(filter, filterListId, null, sort, sortInverse, sortCenter, limit);
            return new SearchResult(null, geocodes, getAllStoredCachesCount(filterListId));
        });
    }
Loads all Waypoints in the coordinate rectangle.
main/src/main/java/cgeo/geocaching/storage/DataStore.java