- FGNavRecord *findByFreq( double freq, const SGGeod& position);
-
- // Given an Ident and optional freqency, return the first matching
- // station.
- FGNavRecord *findByIdentAndFreq( const std::string& ident,
- const double freq = 0.0 );
-
- // given a frequency returns the first matching entry
- FGNavRecord *findStationByFreq( double frequency );
-};
-
-
+ static FGNavRecordRef findByFreq( double freq, const SGGeod& position,
+ TypeFilter* filter = NULL);
+
+ /**
+ * Overloaded version above - no positioned supplied so can be used with
+ * mobile TACANs which have no valid position. The first match is
+ * returned only.
+ */
+ static FGNavRecordRef findByFreq( double freq, TypeFilter* filter = NULL);
+
+ static nav_list_type findAllByFreq( double freq, const SGGeod& position,
+ TypeFilter* filter = NULL);
+
+ // Given an Ident and optional frequency and type ,
+ // return a list of matching stations.
+ static nav_list_type findByIdentAndFreq( const std::string& ident,
+ const double freq,
+ TypeFilter* filter = NULL);
+
+ // Given an Ident and optional frequency and type ,
+ // return a list of matching stations sorted by distance to the given position
+ static nav_list_type findByIdentAndFreq( const SGGeod & position,
+ const std::string& ident, const double freq = 0.0,
+ TypeFilter* filter = NULL);
+
+ };