// Constructor
SGWayPoint::SGWayPoint( const double lon, const double lat, const double alt,
- const modetype m, const string s ) {
+ const modetype m, const string s, const string n ) {
target_lon = lon;
target_lat = lat;
target_alt = alt;
mode = m;
id = s;
+ name = n;
}
double distance;
string id;
+ string name;
public:
* @param alt target altitude
* @param mode type of coordinates/math to use
* @param s waypoint identifier
+ * @param n waypoint name
*/
SGWayPoint( const double lon = 0.0, const double lat = 0.0,
const double alt = 0.0, const modetype m = WGS84,
- const string s = "" );
+ const string s = "", const string n = "" );
/** Destructor */
~SGWayPoint();
/** @return waypoint id */
inline string get_id() const { return id; }
+ /** @return waypoint name */
+ inline string get_name() const { return name; }
+
};