|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Class Summary | |
|---|---|
| GeoRSSModule | GeoRSSModule is the main georss interface defining the methods to produce and consume georss elements. |
| GeoRSSPoint | |
| GeoRSSUtils | static utility methods for georss. |
| GMLGenerator | GMLGenerator produces georss elements in georss GML format. |
| GMLModuleImpl | GMLModuleImpl is the implementation of the GeoRSSModule Interface
for the gml GeoRSS format. |
| GMLParser | GMLParser is a parser for the GML georss format. |
| SimpleGenerator | SimpleGenerator produces georss elements in georss simple format. |
| SimpleModuleImpl | SimpleModuleImpl is the implementation of the GeoRSSModule Interface
for the GeoRSS Simple format. |
| SimpleParser | SimpleParser is a parser for the GeoRSS Simple format. |
| W3CGeoGenerator | W3CGeoGenerator produces georss elements in georss W3C geo format. |
| W3CGeoModuleImpl | W3CGeoModuleImpl is the implementation of the GeoRSSModule Interface
for the W3C geo format. |
| W3CGeoParser | W3CGeoParser is a parser for the W3C geo format. |
This package contains classes to enable the rome rss library with georss support. GeoRSS describes a number of ways to encoding location in RSS feeds
SyndFeedInput input = new SyndFeedInput();
SyndFeed feed = input.build(new XmlReader(new URL(
"http://www.geonames.org/recent-changes.xml")));
List<syndentry> entries = feed.getEntries();
for (SyndEntry entry : entries) {
GeoRSSModule geoRSSModule = GeoRSSUtils.getGeoRSS(entry);
System.out.println(entry.getTitle() + " : lat="
+ geoRSSModule.getPosition().getLatitude() + ",lng="
+ geoRSSModule.getPosition().getLongitude() + ", desc="
+ entry.getDescription().getValue() + "; time="
+ entry.getPublishedDate());
}
GeoRSSModule geoRSSModule = new W3CGeoModuleImpl();
//GeoRSSModule geoRSSModule = new SimpleModuleImpl();
geoRSSModule.setPosition(new Position(47.0, 9.0));
entry.getModules().add(geoRSSModule);
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||