Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Inherited Constants](https://developer.android.com/reference/android/location/Address#inhconstants) \| [Fields](https://developer.android.com/reference/android/location/Address#lfields) \| [Ctors](https://developer.android.com/reference/android/location/Address#pubctors) \| [Methods](https://developer.android.com/reference/android/location/Address#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/location/Address#inhmethods)

# Address

*** ** * ** ***


`
public


class
Address
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


implements

https://developer.android.com/reference/android/os/Parcelable


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.location.Address |

<br />

*** ** * ** ***

A class representing an Address, that is, a set of Strings describing a location.

The address format is a simplified version of xAL (eXtensible Address Language)
http://www.oasis-open.org/committees/ciq/ciq.html#6

## Summary

| ### Inherited constants |
|---|
| From interface `https://developer.android.com/reference/android/os/Parcelable` |---|---| | `int` | `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` Descriptor bit used with `https://developer.android.com/reference/android/os/Parcelable#describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor. | | `int` | `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` Flag for use with `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`: the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`". | |

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/os/Parcelable.Creator<https://developer.android.com/reference/android/location/Address>` | `https://developer.android.com/reference/android/location/Address#CREATOR` |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/location/Address#Address(java.util.Locale)(https://developer.android.com/reference/java/util/Locale locale) ` Constructs a new Address object set to the given Locale and with all other fields initialized to null or false. |

| ### Public methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/android/location/Address#clearLatitude()() ` Removes any latitude associated with this address. |
| ` void` | ` https://developer.android.com/reference/android/location/Address#clearLongitude()() ` Removes any longitude associated with this address. |
| ` int` | ` https://developer.android.com/reference/android/location/Address#describeContents()() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/location/Address#getAddressLine(int)(int index) ` Returns a line of the address numbered by the given index (starting at 0), or null if no such line is present. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/location/Address#getAdminArea()() ` Returns the administrative area name of the address, for example, "CA", or null if it is unknown |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/location/Address#getCountryCode()() ` Returns the country code of the address, for example "US", or null if it is unknown. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/location/Address#getCountryName()() ` Returns the localized country name of the address, for example "Iceland", or null if it is unknown. |
| ` https://developer.android.com/reference/android/os/Bundle` | ` https://developer.android.com/reference/android/location/Address#getExtras()() ` Returns additional provider-specific information about the address as a Bundle. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/location/Address#getFeatureName()() ` Returns the feature name of the address, for example, "Golden Gate Bridge", or null if it is unknown |
| ` double` | ` https://developer.android.com/reference/android/location/Address#getLatitude()() ` Returns the latitude of the address if known. |
| ` https://developer.android.com/reference/java/util/Locale` | ` https://developer.android.com/reference/android/location/Address#getLocale()() ` Returns the Locale associated with this address. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/location/Address#getLocality()() ` Returns the locality of the address, for example "Mountain View", or null if it is unknown. |
| ` double` | ` https://developer.android.com/reference/android/location/Address#getLongitude()() ` Returns the longitude of the address if known. |
| ` int` | ` https://developer.android.com/reference/android/location/Address#getMaxAddressLineIndex()() ` Returns the largest index currently in use to specify an address line. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/location/Address#getPhone()() ` Returns the phone number of the address if known, or null if it is unknown. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/location/Address#getPostalCode()() ` Returns the postal code of the address, for example "94110", or null if it is unknown. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/location/Address#getPremises()() ` Returns the premises of the address, or null if it is unknown. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/location/Address#getSubAdminArea()() ` Returns the sub-administrative area name of the address, for example, "Santa Clara County", or null if it is unknown |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/location/Address#getSubLocality()() ` Returns the sub-locality of the address, or null if it is unknown. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/location/Address#getSubThoroughfare()() ` Returns the sub-thoroughfare name of the address, which may be null. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/location/Address#getThoroughfare()() ` Returns the thoroughfare name of the address, for example, "1600 Ampitheater Parkway", which may be null |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/location/Address#getUrl()() ` Returns the public URL for the address if known, or null if it is unknown. |
| ` boolean` | ` https://developer.android.com/reference/android/location/Address#hasLatitude()() ` Returns true if a latitude has been assigned to this Address, false otherwise. |
| ` boolean` | ` https://developer.android.com/reference/android/location/Address#hasLongitude()() ` Returns true if a longitude has been assigned to this Address, false otherwise. |
| ` void` | ` https://developer.android.com/reference/android/location/Address#setAddressLine(int,%20java.lang.String)(int index, https://developer.android.com/reference/java/lang/String line) ` Sets the line of the address numbered by index (starting at 0) to the given String, which may be null. |
| ` void` | ` https://developer.android.com/reference/android/location/Address#setAdminArea(java.lang.String)(https://developer.android.com/reference/java/lang/String adminArea) ` Sets the administrative area name of the address to the given String, which may be null |
| ` void` | ` https://developer.android.com/reference/android/location/Address#setCountryCode(java.lang.String)(https://developer.android.com/reference/java/lang/String countryCode) ` Sets the country code of the address to the given String, which may be null. |
| ` void` | ` https://developer.android.com/reference/android/location/Address#setCountryName(java.lang.String)(https://developer.android.com/reference/java/lang/String countryName) ` Sets the country name of the address to the given String, which may be null. |
| ` void` | ` https://developer.android.com/reference/android/location/Address#setExtras(android.os.Bundle)(https://developer.android.com/reference/android/os/Bundle extras) ` Sets the extra information associated with this fix to the given Bundle. |
| ` void` | ` https://developer.android.com/reference/android/location/Address#setFeatureName(java.lang.String)(https://developer.android.com/reference/java/lang/String featureName) ` Sets the feature name of the address to the given String, which may be null |
| ` void` | ` https://developer.android.com/reference/android/location/Address#setLatitude(double)(double latitude) ` Sets the latitude associated with this address. |
| ` void` | ` https://developer.android.com/reference/android/location/Address#setLocality(java.lang.String)(https://developer.android.com/reference/java/lang/String locality) ` Sets the locality of the address to the given String, which may be null. |
| ` void` | ` https://developer.android.com/reference/android/location/Address#setLongitude(double)(double longitude) ` Sets the longitude associated with this address. |
| ` void` | ` https://developer.android.com/reference/android/location/Address#setPhone(java.lang.String)(https://developer.android.com/reference/java/lang/String phone) ` Sets the phone number associated with this address. |
| ` void` | ` https://developer.android.com/reference/android/location/Address#setPostalCode(java.lang.String)(https://developer.android.com/reference/java/lang/String postalCode) ` Sets the postal code of the address to the given String, which may be null. |
| ` void` | ` https://developer.android.com/reference/android/location/Address#setPremises(java.lang.String)(https://developer.android.com/reference/java/lang/String premises) ` Sets the premises of the address to the given String, which may be null. |
| ` void` | ` https://developer.android.com/reference/android/location/Address#setSubAdminArea(java.lang.String)(https://developer.android.com/reference/java/lang/String subAdminArea) ` Sets the sub-administrative area name of the address to the given String, which may be null |
| ` void` | ` https://developer.android.com/reference/android/location/Address#setSubLocality(java.lang.String)(https://developer.android.com/reference/java/lang/String sublocality) ` Sets the sub-locality of the address to the given String, which may be null. |
| ` void` | ` https://developer.android.com/reference/android/location/Address#setSubThoroughfare(java.lang.String)(https://developer.android.com/reference/java/lang/String subthoroughfare) ` Sets the sub-thoroughfare name of the address, which may be null. |
| ` void` | ` https://developer.android.com/reference/android/location/Address#setThoroughfare(java.lang.String)(https://developer.android.com/reference/java/lang/String thoroughfare) ` Sets the thoroughfare name of the address, which may be null. |
| ` void` | ` https://developer.android.com/reference/android/location/Address#setUrl(java.lang.String)(https://developer.android.com/reference/java/lang/String Url) ` Sets the public URL associated with this address. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/location/Address#toString()() ` Returns a string representation of the object. |
| ` void` | ` https://developer.android.com/reference/android/location/Address#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel parcel, int flags) ` Flatten this object in to a Parcel. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||
| From interface ` https://developer.android.com/reference/android/os/Parcelable ` |---|---| | ` abstract int` | ` https://developer.android.com/reference/android/os/Parcelable#describeContents()() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. | | ` abstract void` | ` https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) ` Flatten this object in to a Parcel. | ||

## Fields

### CREATOR

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final Creator<Address> CREATOR
```

<br />

<br />

## Public constructors

### Address

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Address (Locale locale)
```

Constructs a new Address object set to the given Locale and with all
other fields initialized to null or false.

<br />

| Parameters ||
|---|---|
| `locale` | `Locale` <br /> |

## Public methods

### clearLatitude

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void clearLatitude ()
```

Removes any latitude associated with this address.

<br />

### clearLongitude

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void clearLongitude ()
```

Removes any longitude associated with this address.

<br />

### describeContents

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int describeContents ()
```

Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation. For example, if the object will
include a file descriptor in the output of `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`,
the return value of this method must include the
`https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` bit.

<br />

| Returns ||
|---|---|
| `int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` |

### getAddressLine

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getAddressLine (int index)
```

Returns a line of the address numbered by the given index
(starting at 0), or null if no such line is present.

<br />

| Parameters ||
|---|---|
| `index` | `int` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | if index \< 0 |

### getAdminArea

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getAdminArea ()
```

Returns the administrative area name of the address, for example, "CA", or null if
it is unknown

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getCountryCode

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getCountryCode ()
```

Returns the country code of the address, for example "US",
or null if it is unknown.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getCountryName

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getCountryName ()
```

Returns the localized country name of the address, for example "Iceland",
or null if it is unknown.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getExtras

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Bundle getExtras ()
```

Returns additional provider-specific information about the
address as a Bundle. The keys and values are determined
by the provider. If no additional information is available,
null is returned.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/os/Bundle` | <br /> |

### getFeatureName

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getFeatureName ()
```

Returns the feature name of the address, for example, "Golden Gate Bridge", or null
if it is unknown

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getLatitude

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public double getLatitude ()
```

Returns the latitude of the address if known.

<br />

| Returns ||
|---|---|
| `double` | <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException` | if this Address has not been assigned a latitude. |

### getLocale

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Locale getLocale ()
```

Returns the Locale associated with this address.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/Locale` | <br /> |

### getLocality

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getLocality ()
```

Returns the locality of the address, for example "Mountain View", or null if it is unknown.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getLongitude

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public double getLongitude ()
```

Returns the longitude of the address if known.

<br />

| Returns ||
|---|---|
| `double` | <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException` | if this Address has not been assigned a longitude. |

### getMaxAddressLineIndex

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getMaxAddressLineIndex ()
```

Returns the largest index currently in use to specify an address line.
If no address lines are specified, -1 is returned.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getPhone

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getPhone ()
```

Returns the phone number of the address if known,
or null if it is unknown.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException` | if this Address has not been assigned a phone number. |

### getPostalCode

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getPostalCode ()
```

Returns the postal code of the address, for example "94110",
or null if it is unknown.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getPremises

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getPremises ()
```

Returns the premises of the address, or null if it is unknown.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getSubAdminArea

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getSubAdminArea ()
```

Returns the sub-administrative area name of the address, for example, "Santa Clara County",
or null if it is unknown

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getSubLocality

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getSubLocality ()
```

Returns the sub-locality of the address, or null if it is unknown.
For example, this may correspond to the neighborhood of the locality.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getSubThoroughfare

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getSubThoroughfare ()
```

Returns the sub-thoroughfare name of the address, which may be null.
This may correspond to the street number of the address.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getThoroughfare

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getThoroughfare ()
```

Returns the thoroughfare name of the address, for example, "1600 Ampitheater Parkway",
which may be null

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getUrl

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getUrl ()
```

Returns the public URL for the address if known,
or null if it is unknown.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### hasLatitude

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasLatitude ()
```

Returns true if a latitude has been assigned to this Address,
false otherwise.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### hasLongitude

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasLongitude ()
```

Returns true if a longitude has been assigned to this Address,
false otherwise.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### setAddressLine

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setAddressLine (int index, 
                String line)
```

Sets the line of the address numbered by index (starting at 0) to the
given String, which may be null.

<br />

| Parameters ||
|---|---|
| `index` | `int` <br /> |
| `line` | `String` <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | if index \< 0 |

### setAdminArea

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setAdminArea (String adminArea)
```

Sets the administrative area name of the address to the given String, which may be null

<br />

| Parameters ||
|---|---|
| `adminArea` | `String` <br /> |

### setCountryCode

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setCountryCode (String countryCode)
```

Sets the country code of the address to the given String, which may
be null.

<br />

| Parameters ||
|---|---|
| `countryCode` | `String` <br /> |

### setCountryName

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setCountryName (String countryName)
```

Sets the country name of the address to the given String, which may
be null.

<br />

| Parameters ||
|---|---|
| `countryName` | `String` <br /> |

### setExtras

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setExtras (Bundle extras)
```

Sets the extra information associated with this fix to the
given Bundle.

<br />

| Parameters ||
|---|---|
| `extras` | `Bundle` <br /> |

### setFeatureName

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setFeatureName (String featureName)
```

Sets the feature name of the address to the given String, which may be null

<br />

| Parameters ||
|---|---|
| `featureName` | `String` <br /> |

### setLatitude

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setLatitude (double latitude)
```

Sets the latitude associated with this address.

<br />

| Parameters ||
|---|---|
| `latitude` | `double` <br /> |

### setLocality

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setLocality (String locality)
```

Sets the locality of the address to the given String, which may be null.

<br />

| Parameters ||
|---|---|
| `locality` | `String` <br /> |

### setLongitude

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setLongitude (double longitude)
```

Sets the longitude associated with this address.

<br />

| Parameters ||
|---|---|
| `longitude` | `double` <br /> |

### setPhone

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setPhone (String phone)
```

Sets the phone number associated with this address.

<br />

| Parameters ||
|---|---|
| `phone` | `String` <br /> |

### setPostalCode

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setPostalCode (String postalCode)
```

Sets the postal code of the address to the given String, which may
be null.

<br />

| Parameters ||
|---|---|
| `postalCode` | `String` <br /> |

### setPremises

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setPremises (String premises)
```

Sets the premises of the address to the given String, which may be null.

<br />

| Parameters ||
|---|---|
| `premises` | `String` <br /> |

### setSubAdminArea

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setSubAdminArea (String subAdminArea)
```

Sets the sub-administrative area name of the address to the given String, which may be null

<br />

| Parameters ||
|---|---|
| `subAdminArea` | `String` <br /> |

### setSubLocality

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setSubLocality (String sublocality)
```

Sets the sub-locality of the address to the given String, which may be null.

<br />

| Parameters ||
|---|---|
| `sublocality` | `String` <br /> |

### setSubThoroughfare

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setSubThoroughfare (String subthoroughfare)
```

Sets the sub-thoroughfare name of the address, which may be null.

<br />

| Parameters ||
|---|---|
| `subthoroughfare` | `String` <br /> |

### setThoroughfare

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setThoroughfare (String thoroughfare)
```

Sets the thoroughfare name of the address, which may be null.

<br />

| Parameters ||
|---|---|
| `thoroughfare` | `String` <br /> |

### setUrl

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setUrl (String Url)
```

Sets the public URL associated with this address.

<br />

| Parameters ||
|---|---|
| `Url` | `String` <br /> |

### toString

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String toString ()
```

Returns a string representation of the object.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | a string representation of the object. <br /> |

### writeToParcel

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void writeToParcel (Parcel parcel, 
                int flags)
```

Flatten this object in to a Parcel.

<br />

| Parameters ||
|---|---|
| `parcel` | `Parcel`: The Parcel in which the object should be written. This value cannot be `null`. <br /> |
| `flags` | `int`: Additional flags about how the object should be written. May be 0 or `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` |