@Anthony
Bon, voici une petite amélioration du service météo. Ce n’est pas grand chose mais cela permet d’avoir une météo plus précise avec ton service.
`public String[] fetchRaw(String location) throws ClientProtocolException, IOException, JSONException {
String[] result = new String[4];
JSONObject obj = fetch(location);
result[0] = obj.getJSONArray(« weather »).getJSONObject(0).get(« description »).toString();
result[1] = obj.getJSONObject(« main »).get(« temp »).toString();
result[2] = location;
result[3] = obj.getJSONArray(« weather »).getJSONObject(0).get(« id »).toString();
result[4] = obj.getJSONObject(« main »).get(« pressure »).toString();
result[5] = obj.getJSONObject(« main »).get(« humidity »).toString();
result[6] = obj.getJSONObject(« main »).get(« temp_min »).toString();
result[7] = obj.getJSONObject(« main »).get(« temp_max »).toString();
result[8] = obj.getJSONObject(« wind »).get(« speed »).toString();
result[9] = obj.getJSONObject(« wind »).get(« deg »).toString();
return result;
}`
A remplacer dans le service OpenWeatherMap