public class Location extends Object implements Serializable, Cloneable
Represents a latitude and longitude pair, expressed in geographic coordinate system degrees (for example 47.6204, -122.3491).
Elevation is currently not supported.
| Constructor and Description |
|---|
Location() |
| Modifier and Type | Method and Description |
|---|---|
Location |
clone() |
boolean |
equals(Object obj) |
Double |
getLatitude()
The latitude.
|
Double |
getLongitude()
The longitude.
|
int |
hashCode() |
void |
setLatitude(Double latitude)
The latitude.
|
void |
setLongitude(Double longitude)
The longitude.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Location |
withLatitude(Double latitude)
The latitude.
|
Location |
withLongitude(Double longitude)
The longitude.
|
public void setLatitude(Double latitude)
The latitude.
latitude - The latitude.public Double getLatitude()
The latitude.
public Location withLatitude(Double latitude)
The latitude.
latitude - The latitude.public void setLongitude(Double longitude)
The longitude.
longitude - The longitude.public Double getLongitude()
The longitude.
public Location withLongitude(Double longitude)
The longitude.
longitude - The longitude.public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.