Author: lemovice
Date: Sat Oct  5 12:08:29 2013
New Revision: 4596

Log:
Correct getCity method ans add toString method

Modified:
   
trunk/AncestrisExtensions/place.geoname/src/ancestris/place/geonames/GeonamesPlace.java

Modified: 
trunk/AncestrisExtensions/place.geoname/src/ancestris/place/geonames/GeonamesPlace.java
==============================================================================
--- 
trunk/AncestrisExtensions/place.geoname/src/ancestris/place/geonames/GeonamesPlace.java
     (original)
+++ 
trunk/AncestrisExtensions/place.geoname/src/ancestris/place/geonames/GeonamesPlace.java
     Sat Oct  5 12:08:29 2013
@@ -22,7 +22,7 @@
 
     @Override
     public String getCity() {
-        return postalCode.getAdminName1();
+        return postalCode.getPlaceName();
     }
 
     @Override
@@ -82,4 +82,11 @@
     public Double getLatitude() {
         return postalCode.getLatitude();
     }
+
+    @Override
+    public String toString() {
+        return postalCode.getPlaceName() + "," + postalCode.getAdminName1() + 
","
+                + postalCode.getAdminName2() + "," + 
postalCode.getAdminName3() + ","
+                + postalCode.getPostalCode() + "," + 
postalCode.getCountryCode();
+    }
 }

---------------------------------------------------------------------
Site Web Ancestris : http://www.ancestris.org

<*> Pour vous desinscrire de cette liste, envoyez un mail a :
              [email protected]
<*> Pour obtenir de l'aide sur les commandes de la liste :
              [email protected]

Pour obtenir tous les messages lies a ce fil de discussion, cliquez sur le 
lien ci-dessous, cela ouvrira votre logiciel de messagerie. Il vous suffira 
d'envoyer le message :
              [email protected]

Reply via email to