diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-14 12:54:41 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-07-14 12:54:41 -0700 |
commit | 334a67740c9f7f35fa9ee93cf0f8051d41ce2d7a (patch) | |
tree | e7bcf93c2ac804030b8f69192aa06818adc4a47b /location/java | |
parent | dace230043314d6fab1c5ced4b031eaccd814c25 (diff) | |
parent | b82759a051f55852dabe201ad3354ea9b7b2979d (diff) | |
download | frameworks_base-334a67740c9f7f35fa9ee93cf0f8051d41ce2d7a.zip frameworks_base-334a67740c9f7f35fa9ee93cf0f8051d41ce2d7a.tar.gz frameworks_base-334a67740c9f7f35fa9ee93cf0f8051d41ce2d7a.tar.bz2 |
am b82759a0: Merge change 6906 into donut
Merge commit 'b82759a051f55852dabe201ad3354ea9b7b2979d'
* commit 'b82759a051f55852dabe201ad3354ea9b7b2979d':
location: Add sub-locality, sub-thoroughfare and premises fields to Address class
Diffstat (limited to 'location/java')
-rw-r--r-- | location/java/android/location/Address.java | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/location/java/android/location/Address.java b/location/java/android/location/Address.java index 3551363..ac275c6 100644 --- a/location/java/android/location/Address.java +++ b/location/java/android/location/Address.java @@ -41,7 +41,10 @@ public class Address implements Parcelable { private String mAdminArea; private String mSubAdminArea; private String mLocality; + private String mSubLocality; private String mThoroughfare; + private String mSubThoroughfare; + private String mPremises; private String mPostalCode; private String mCountryCode; private String mCountryName; @@ -175,6 +178,21 @@ public class Address implements Parcelable { } /** + * Returns the sub-locality of the address, or null if it is unknown. + * For example, this may correspond to the neighborhood of the locality. + */ + public String getSubLocality() { + return mSubLocality; + } + + /** + * Sets the sub-locality of the address to the given String, which may be null. + */ + public void setSubLocality(String sublocality) { + mSubLocality = sublocality; + } + + /** * Returns the thoroughfare name of the address, for example, "1600 Ampitheater Parkway", * which may be null */ @@ -190,6 +208,35 @@ public class Address implements Parcelable { } /** + * Returns the sub-thoroughfare name of the address, which may be null. + * This may correspond to the street number of the address. + */ + public String getSubThoroughfare() { + return mSubThoroughfare; + } + + /** + * Sets the sub-thoroughfare name of the address, which may be null. + */ + public void setSubThoroughfare(String subthoroughfare) { + this.mSubThoroughfare = subthoroughfare; + } + + /** + * Returns the premises of the address, or null if it is unknown. + */ + public String getPremises() { + return mPremises; + } + + /** + * Sets the premises of the address to the given String, which may be null. + */ + public void setPremises(String premises) { + mPremises = premises; + } + + /** * Returns the postal code of the address, for example "94110", * or null if it is unknown. */ |