Code example for Address

Methods: getSubLocality

0
                 
            } 
 
            if (addressList != null && !addressList.isEmpty()) {
                Address addr = addressList.get(0);
                subLocality = addr.getSubLocality();
                try { 
                    json = constructJson(addressLine, latitude, longitude, subLocality);
                    Log.e(TAG,json.toString());
                } catch (JSONException e) {
                    Log.e("GeoAddress", e.getMessage());
                } 
            } 
        } 
    } 
 
    @Override 
    public String toString() {
        return addressLine;
    } 
}