public boolean applyDistanceRule() {
        boolean applyDistanceRule = getWaypointType().applyDistanceRule();
        if (applyDistanceRule) {
            final Geocache parentCache = getParentGeocache();
            if (parentCache != null) {
                applyDistanceRule = parentCache.mayApplyDistanceRule();
            }
        }
        return applyDistanceRule;
    }
tries to retrieve waypoint id from clipboard
returns the id, or -1 if no waypoint (with internal prefix) found
main/src/main/java/cgeo/geocaching/models/Waypoint.java