public static class WorldMapView.Location
extends java.lang.Object
| Constructor and Description |
|---|
Location(double latitude,
double longitude)
Constructs a new location.
|
Location(java.lang.String name,
double latitude,
double longitude)
Constructs a new location.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getLatitude()
Returns the latitude of the location.
|
double |
getLongitude()
Returns the longitude of the location.
|
java.lang.String |
getName()
Returns the name of the location.
|
public Location(double latitude,
double longitude)
latitude - the latitude datalongitude - the longitude datapublic Location(java.lang.String name,
double latitude,
double longitude)
name - the name of the location (e.g. "Zurich")latitude - the latitude datalongitude - the longitude datapublic final java.lang.String getName()
public final double getLatitude()
public final double getLongitude()