Simconnect - SubscribeToFacilities returns all airports on managed code

I am trying to detect where the user has landed. I can’t find a good way to deduce that information, so I had to resort to subscribing to facilities and checking distance from each of the returned airports (40,000 calculations).

  1. Is there no better way?
  2. The documentation says that using SimConnect_SubscribeToFacilities_EX1 can return only the airports in the reality bubble (which is 200 nm). However, the managed code dll only exposes a “SubscribeToFacilities” method. Is there a way to get only the ones in the reality bubble?
simconnect.SubscribeToFacilities(SIMCONNECT_FACILITY_LIST_TYPE.AIRPORT, DATA_REQUESTS.AIRPORTS_REQUEST);

Thanks!

In my addon that I’ve been developing, I have been working with the coordinates returned by navdatareader and I check to see if the user’s lat/lon fall within the boundary described by the top/left and bottom/right coordinates.

That might be a bit much for your needs, but for me it’s worked well.