-
- return true;
-}
-
-
-// query the database for the specified fix, lon and lat are in
-// degrees, elev is in meters
-bool FGFixList::query( const string& ident, FGFix *fix ) {
- *fix = fixlist[ident];
- if ( ! fix->get_ident().empty() ) {
- return true;
- } else {
- return false;
- }
-}
-
-
-// query the database for the specified fix, lon and lat are in
-// degrees, elev is in meters
-bool FGFixList::query_and_offset( const string& ident, double lon, double lat,
- double elev, FGFix *fix, double *heading,
- double *dist )
-{
- *fix = fixlist[ident];
- if ( fix->get_ident().empty() ) {
- return false;
- }
-
- double az1, az2, s;
- geo_inverse_wgs_84( elev, lat, lon,
- fix->get_lat(), fix->get_lon(),
- &az1, &az2, &s );
- // cout << " dist = " << s << endl;
- *heading = az2;
- *dist = s;