Jump to content
The simFlight Network Forums

Detect Current Airport or Closest Airport


Alp

Recommended Posts

Hello,

I need a information about how can i detect current airport?

I am coding a acars system and i want to detect pilot's landed airport icao. If i detect pilot's current airport, thats perfect. If it is not possible i can search nearest airports and i think closest airport is the pilot's location. 2 approaches is ok for me but i dont know how can i do these. Any body can help me?

Regards

Link to comment
Share on other sites

If you're using my Client DLL for .NET languages you can use the AirportsDatabase service for this. It reads the files generated by Pete Dowson's MakeRunways program.

For details and examples, please look in the Example Code application available on my Website:

http://fsuipc.paulhenty.com/#downloads

Go through the examples under the section called "Airports/Runways Database" to see how to use the database.

Example "DB003 Finding Airports In Rage" shows you how to get the nearest airport to the player. You can use this to find out if the player is at an airport and which one it is.

Paul

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.