Hi,
The Address Web API responds with adminCode4 and adminName4 elements.
For example : http://api.geonames.org/addressJSON?lat=48.8&lng=2.3&username=<user> returns adminCode4: "92007" and adminName4: "Bagneux".
But the org.geonames.Address Java Class (from geonames-1.1.14.jar) do not contains getters for adminName4 and adminCode4 (whereas it contains AdminName and AdminCode from 1 to 3).
See example below:
Code:
WebService.setUserName("<user>");
Address geonameLocation = WebService.address(48.8, 2.3);
String adminName3 = geonameLocation.getAdminName3(); // OK
String adminCode3 = geonameLocation.getAdminCode3(); // OK
String adminName4 = geonameLocation.getAdminName4(); // Does not exist
String adminCode4 = geonameLocation.getAdminCode4(); // Does not exist
In fact, the method address(double latitude, double longitude) from the class org.geonames.WebService does not extract adminName4 and adminCode4 from the org.jdom.Element