| java.lang.Object | |
| ↳ | com.google.api.gbase.client.Location |
Object representation of a location; an address and optionally latitude and longitude.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| address | |||||||||||
| hasCoordinates | |||||||||||
| latitude | |||||||||||
| longitude | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an address location.
| |||||||||||
Creates a location with latitude, longitude and address.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Unset latitude and longitude..
| |||||||||||
Gets the address.
| |||||||||||
Gets latitude, if it has been defined.
| |||||||||||
Gets the longitude, if it has been defined.
| |||||||||||
Check whether coordinates have been defined.
| |||||||||||
Sets the address.
| |||||||||||
Sets latitude.
| |||||||||||
Sets longitude.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates an address location.
| address |
|---|
Creates a location with latitude, longitude and address.
| address | |
|---|---|
| latitude | |
| longitude |
Unset latitude and longitude..
| o |
|---|
Gets the address.
Gets latitude, if it has been defined.
| IllegalStateException | if no coordinates have
been defined (check with hasCoordinates().
|
|---|
Gets the longitude, if it has been defined.
| IllegalStateException | if no coordinates have
been defined (check with hasCoordinates().
|
|---|
Check whether coordinates have been defined.
Sets the address.
| address | An address |
|---|
| NullPointerException | if the address is null |
|---|
Sets latitude.
| latitude |
|---|
Sets longitude.
| longitude |
|---|