GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Rome Get place name?  XML
Forum Index -> General
Author Message
evo6



Joined: 25/07/2007 13:40:26
Messages: 1
Offline

Hi everyone,

First I’d like to say thanks to marc for the geoRss module (Rome) and to everyone that has contributed to the project.....It Rocks!

I was wondering if it was possible to get the name of the place which Rome has converted to coordinates so I can also list the location i.e "Brazil"

My code is shown below, please be gentle I am only a student

Any help would be much appreciated

Thanks in advance

Code:
 java.util.List x = parseGeoRss();
 for (Iterator i = x.iterator();i.hasNext();)
 {
     SyndEntry p = (SyndEntry) i.next();
     GeoRSSModule geoRSSModule = GeoRSSUtils.getGeoRSS(p);
     String t = Double.toString(geoRSSModule.getPosition().getLatitude());
     String v = Double.toString(geoRSSModule.getPosition().getLongitude());
     
     //Get the name of the of the place which the coordinates have been                        
     retrived for?
 }
 
marc



Joined: 08/12/2005 07:39:47
Messages: 4486
Offline

I am afraid this data is not parseable by the ROME plugin. The ROME plugin parsed GeoRSS proper : http://www.georss.org

We have proposed to include geographical information* in GeoRSS, but the proposal did not gather enough votes.

Marc

* : I use the term 'geographical information' to distinguish from 'geometrical information' like lines and polygons, which are included in GeoRSS.

[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team