public void invalidateWaypoints(final Collection<String> geocodes) {
        final Set<Geocache> baseCaches = DataStore.loadCaches(geocodes, LoadFlags.LOAD_WAYPOINTS);
        final Collection<String> invalidWpCodes = new ArrayList<>();
        for (final Geocache cache : baseCaches) {
            final List<Waypoint> wl = cache.getWaypoints();
            for (final Waypoint w : wl) {
                invalidWpCodes.add(w.getFullGpxId());
            }
        }
        invalidate(invalidWpCodes);
    }
get waypoint IDs for geocodes and invalidate them

@param geocodes the codes
main/src/main/java/cgeo/geocaching/maps/mapsforge/v6/caches/WaypointsOverlay.java