static boolean isValidLongitude(final double longitude) {
        return longitude >= -180 && longitude <= 180;
    }
Check whether a longitude from user supplied data is valid. We accept both E180/W180.

@return <tt>true</tt> if the longitude looks valid, <tt>false</tt> otherwise
main/src/main/java/cgeo/geocaching/location/Geopoint.java