GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Java Client Library: How do I submit a new a new toponym to the database?  XML
Forum Index -> FAQ - frequently asked questions
Author Message
yxxm



Joined: 19/06/2009 18:24:09
Messages: 2
Offline

Hello All,

I'm currently looking to be able to tag a location from the Java client library. However, I'm wondering how I go about doing this? I thought that the method saveTags(...) would do what I wanted, but, in particular, I'm stumped over the following line of code:

Code:
   906 	public static void saveTags(String[] tags, Toponym toponym,
   907 			String username, String password) throws Exception {
   908 		if (toponym.getGeoNameId() == 0) {
   909 			throw new Error("no geonameid specified");
   910 		}
 


If this assumes that you already have an ID, then apparently this method is only for editing existing toponyms (am I correct with this logic?)

How can I go about inserting a new Toponym to the database (aside from doing it on the webpage?)
yxxm



Joined: 19/06/2009 18:24:09
Messages: 2
Offline

After looking through many of the other libraries, it looks like such a feat is not possible at all: is that true?
marc



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

The client library does not support to add places to the database. We think it is safer for the quality of the data if people have a look before entering anything.

Best

Marc

[WWW]
 
Forum Index -> FAQ - frequently asked questions
Go to:   
Powered by JForum 2.1.5 © JForum Team