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?)