private String[] parseCoordinates(final JSONObject json) throws NameResolverException {
    try {
      //final JSONArray jsonArray = json.getJSONArray("data");
      final JSONArray jsonArray = json.getJSONArray("features");
      final JSONArray coords  = jsonArray.getJSONObject(0).getJSONObject("geometry").getJSONArray("coordinates");
      
      if (jsonArray.length() != 1) {
        throw new NameResolverException(Status.CLIENT_ERROR_NOT_FOUND, "Not found");
      }
      
      if (coords.get(0).equals("") || coords.get(1).toString().equals("")) {
        throw new NameResolverException(Status.CLIENT_ERROR_NOT_FOUND, "Not found");
      }
      return new String[]{coords.get(0).toString(),coords.get(1).toString()};
    } catch (JSONException ex) {
      throw new NameResolverException(Status.SERVER_ERROR_INTERNAL, "cannot parse the coordinates");
    }
  }