Package com.rometools.modules.georss.geometries

Examples of com.rometools.modules.georss.geometries.Position


            }
        }

        GeoRSSModule geoRSSModule = GeoRSSUtils.getGeoRSS(message);
        if (geoRSSModule != null) {
            final Position position = geoRSSModule.getPosition();
            if (position != null) {
                out.startObject(Rss.LOCATION);
                out.field(Rss.Location.LAT, position.getLatitude());
                out.field(Rss.Location.LON, position.getLongitude());
                out.endObject();
            }
        }

        if (message.getCategories() != null && message.getCategories().size() > 0) {
View Full Code Here


            SyndEntryImpl entry = (SyndEntryImpl) o;

            GeoRSSModule geoRSSModule = GeoRSSUtils.getGeoRSS(entry);
            assertThat(geoRSSModule, notNullValue());

            Position position = geoRSSModule.getPosition();
            assertThat(position, notNullValue());

            assertThat(position.getLatitude(), equalTo(41.8947384616695));
            assertThat(position.getLongitude(), equalTo(12.4839019775391));
        }
    }
View Full Code Here

TOP

Related Classes of com.rometools.modules.georss.geometries.Position

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.