]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/groundnetwork.cxx
Clean up naming of the 'point on runway' helpers, to get rid of the confusing
[flightgear.git] / src / Airports / groundnetwork.cxx
index a4cefee0dab9a7c45a52edac952068b5f03c5f16..9df9b5625d81ed7735a5d0d512224c4ddcc8dab0 100644 (file)
@@ -41,6 +41,8 @@
 //#include <Main/fg_props.hxx>
 //#include <Airports/runways.hxx>
 
+#include <Airports/dynamics.hxx>
+
 #include <AIModel/AIFlightPlan.hxx>
 
 //#include <string>
@@ -310,7 +312,10 @@ void FGGroundNetwork::init()
   //exit(1);
 }
 
-
+int FGGroundNetwork::findNearestNode(const SGGeod& aGeod)
+{
+  return findNearestNode(aGeod.getLatitudeDeg(), aGeod.getLongitudeDeg());
+}
 
 int FGGroundNetwork::findNearestNode(double lat, double lon)
 {