Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Extracting airports from FSX

Featured Replies

Hi guys.

 

I have run in to a challenge with the program I'm developing using SimConnect and C#. As part of my application I need to periodically extract a list of all the airports and their info (lat / lon and so on). Therefore I can not use any of the awesome 3rd party softwares out there for it. I've looked at the Facility Request sample but the API reference in that one only gives me a radius of 200 km from which I can get airport data.

 

I have gone through the entire documentation and I just can't find anything, so maybe this can not be done through SimConnect?? If not does anyone have som great ideas on how to do it?

 

I really hope someone out there can help:

 

Cheers.

  • Author

Yep, all 20.000 airports :-)

I know it is a lot of data, but I need them to be available also when FSX isn't running.

Any ideas?

ADE9X lists all the stock airports in a file called airportList.dat This contains ICAO ID, name, country, region(?), lat, and lon.

Gerry Howard

Hi,

 

There is a utility program named MakeRunways that extract from FS different types of files containing data about airports and runways.

You can find it the site http://www.schiratti.com/dowson.html

 

So, you just have to read the file inside your C# program.

 

Regards.

Patrick.

  • Author

I've tried both utilities, and they are awesome. However I need my application to be independant from 3rd party software, so I need to extract the information myself. I was hoping someone knew how to get these informtions through a SimConnect connection? I've seen a lot of topics of people extracting the information from the .bgl files, but I have no idea how to get started with that. I should probably take it up over on the fsdeveloper forum.

 

But thanks for all the help guys. This is just a superb forum :-)

Then I'm afraid you'll have to write your own code. Experience shows that it will take several minutes to extract all airports each time you call it.

 

Why can't you use the files created by other applications?

Gerry Howard

  • Author

The main reason is probably because I love the challenge of doing it myself. The other reason is what happens if i decide to deploy my application to the public. Then I might run in to som licensing issues when using 3rd party software...

The main reason is probably because I love the challenge of doing it myself. The other reason is what happens if i decide to deploy my application to the public. Then I might run in to som licensing issues when using 3rd party software...

 

The structure of .bgl files is also given in the PDF file that comes with NewbglAnalyse, which is the library here.

 

NewADE9X and MakeRunway are both freeware. All you need to is include advice in your instructions how to download them and how to use them to avoid licencing problems..

Gerry Howard

  • Author

As long as I don't run into any license issues, I would be more than happy to use some of the great tools out there. That would also save me a lot developing time.

Thanks for all your input, it's been a great help.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.