Jump to content
The simFlight Network Forums

Detect Current Airport or Closest Airport


Alp
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • 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.