JSONObject response = new JSONObject(handler.getContent());
if (response.has("error")) {
JSONObject error = response.getJSONObject("error");
int code = error.getInt("code");
String message = error.getString("message");
throw new HttpClientException(code, message);
}
if (response.has("geometries")) {
JSONArray geoms = response.getJSONArray("geometries");
for (int i=0; i<geoms.length(); i++) {