GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Missing adminCode4 and adminName4 in Java Address class  XML
Forum Index -> General
Author Message

Joined: 10/06/2020 15:38:07
Messages: 1


The Address Web API responds with adminCode4 and adminName4 elements.
For example :<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:
 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
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team