26,8 → 26,8 |
this.r = r; |
} |
|
public void obtenirCommunePlusProche(final Rafraichissable r, double lng, |
double lat) { |
public void obtenirCommunePlusProche(final Rafraichissable r, final double lng, |
final double lat) { |
|
String adresseAppel = Configuration.getServiceBaseUrl() + "/" |
+ NOM_SERVICE + "/" + URL.encode("" + lat) + "/" |
69,9 → 69,9 |
return; |
} |
|
Double lng = objetCommune.get("lng").isNumber() |
Double newLng = objetCommune.get("lng").isNumber() |
.doubleValue(); |
Double lat = objetCommune.get("lat").isNumber() |
Double newLat = objetCommune.get("lat").isNumber() |
.doubleValue(); |
String nomCommune = objetCommune.get( |
"name").isString().stringValue(); |
79,7 → 79,7 |
String idLocalite = objetCommune.get( |
"adminCode2").isString().stringValue(); |
|
Object[] infos = { lat, lng, idLocalite, nomCommune}; |
Object[] infos = { lat, lng, idLocalite, nomCommune, newLat, newLng}; |
|
r.rafraichir(infos, false); |
} |
96,6 → 96,8 |
|
codePostal = codePostal.replaceAll("000null", "*"); |
codePostal = codePostal.replaceAll("\"", ""); |
|
valeurCommune = valeurCommune.split(" \\([0-9][0-9]\\)")[0]; |
valeurCommune = valeurCommune.replaceAll("000null", "*"); |
valeurCommune = valeurCommune.replaceAll("\"", ""); |
|