public static GeoRSSModule getGeoRSS(final SyndEntry entry) {
        final GeoRSSModule simple = (GeoRSSModule) entry.getModule(GeoRSSModule.GEORSS_GEORSS_URI);
        final GeoRSSModule w3cGeo = (GeoRSSModule) entry.getModule(GeoRSSModule.GEORSS_W3CGEO_URI);
        final GeoRSSModule gml = (GeoRSSModule) entry.getModule(GeoRSSModule.GEORSS_GML_URI);
        if (gml != null) {
            return gml;
        }
        if (simple != null) {
            return simple;
        }
        if (w3cGeo != null) {
            return w3cGeo;
        }

        return null;
        /*
         * if (geoRSSModule == null && w3cGeo != null) { geoRSSModule = w3cGeo; } else if
         * (geoRSSModule == null && gml != null) { geoRSSModule = gml; } else if (geoRSSModule !=
         * null && w3cGeo != null) { // sanity check if
         * (!geoRSSModule.getGeometry().equals(w3cGeo.getGeometry())) { throw new
         * Error("geometry of simple and w3c do not match"); } } return geoRSSModule;
         */
    }
public static GeoRSSModule getGeoRSS ( final SyndEntry entry ) { final GeoRSSModule simple = ( GeoRSSModule ) entry . getModule ( GeoRSSModule . GEORSS_GEORSS_URI ) ; final GeoRSSModule w3cGeo = ( GeoRSSModule ) entry . getModule ( GeoRSSModule . GEORSS_W3CGEO_URI ) ; final GeoRSSModule gml = ( GeoRSSModule ) entry . getModule ( GeoRSSModule . GEORSS_GML_URI ) ; if ( gml != null ) { return gml ; } if ( simple != null ) { return simple ; } if ( w3cGeo != null ) { return w3cGeo ; } return null ; }
This convenience method checks whether there is any geoRss Element and will return it (georss
simple or W3GGeo).

@param entry the element in the feed which might have a georss element
@return a georssmodule or null if none is present