Constructor and Description |
---|
Waypoint(String id,
double lat,
double lon)
Creates a new instance of
Waypoint with default WGS84 datum. |
Waypoint(String id,
double lat,
double lon,
Datum datum)
Creates a new instance of Waypoint with explicitly specified datum.
|
Waypoint(String id,
double lat,
double lon,
double alt)
Creates a new instance of
Waypoint with default WGS84 datum. |
Waypoint(String id,
double lat,
double lon,
double alt,
Datum datum)
Creates a new instance of
Waypoint with explicitly specified
datum. |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Gets the waypoint description/comment.
|
String |
getId()
Get id of Waypoint
|
Date |
getTimeStamp()
Returns the time stamp when
Waypoint was created. |
void |
setDescription(String description)
Sets the waypoint description.
|
void |
setId(String id)
Set the id of Waypoint
|
distanceTo, getAltitude, getDatum, getLatitude, getLatitudeHemisphere, getLongitude, getLongitudeHemisphere, isLatitudeNorth, isLongitudeEast, setAltitude, setLatitude, setLongitude, toString, toWaypoint
public Waypoint(String id, double lat, double lon)
Waypoint
with default WGS84 datum.id
- Waypoint identifierlat
- Latitude degrees of the waypoint locationlon
- Longitude degrees of waypoint locationpublic Waypoint(String id, double lat, double lon, double alt)
Waypoint
with default WGS84 datum.id
- Waypoint identifierlat
- Latitude degrees of the waypoint locationlon
- Longitude degrees of waypoint locationalt
- Altitude value, in meters above/below mean sea levelpublic Waypoint(String id, double lat, double lon, Datum datum)
id
- Waypoint identifierlat
- Latitude degrees of the waypoint locationlon
- Longitude degrees of waypoint locationdatum
- Position datum, i.e. the coordinate system.public Waypoint(String id, double lat, double lon, double alt, Datum datum)
Waypoint
with explicitly specified
datum.id
- Waypoint identifier/namelat
- Latitude degrees of the waypoint locationlon
- Longitude degrees of waypoint locationalt
- Altitude value, in meters above/below mean sea leveldatum
- Position datum, i.e. the coordinate system.public String getDescription()
public String getId()
public Date getTimeStamp()
Waypoint
was created.public void setDescription(String description)
description
- the description to setpublic void setId(String id)
id
- the id to setCopyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.