]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/gnnode.hxx
BUGFIX: If/else bracket misplacement.
[flightgear.git] / src / Airports / gnnode.hxx
index 9912600e68df184f6f832a795c4a9ed7ce8e87cc..d265ff5ad913eecd30925f234599486f5170dece 100644 (file)
 
 #include <vector>
 #include <string>
+
 #include <simgear/compiler.h>
+#include <simgear/math/sg_geodesy.hxx>
 
-SG_USING_STD(string);
-SG_USING_STD(vector);
+using std::string;
+using std::vector;
 
 class FGTaxiSegment;
 typedef vector<FGTaxiSegment*>  FGTaxiSegmentVector;
@@ -107,6 +109,8 @@ FGTaxiNode &operator =(const FGTaxiNode &other)
   double getLatitude() { return lat;};
   double getLongitude(){ return lon;};
 
+  SGGeod geod() const { return SGGeod::fromDeg(lon, lat); }
+
   int getIndex() { return index; };
   int getHoldPointType() { return holdType; };
   bool getIsOnRunway() { return isOnRunway; };