Alp Posted August 2, 2021 Report Share Posted August 2, 2021 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 Quote Link to comment Share on other sites More sharing options...
Paul Henty Posted August 2, 2021 Report Share Posted August 2, 2021 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 Quote Link to comment Share on other sites More sharing options...
Alp Posted August 2, 2021 Author Report Share Posted August 2, 2021 Thank you. As far as I understand, Fsuipc does not provide this data directly. Is it true? Quote Link to comment Share on other sites More sharing options...
Paul Henty Posted August 2, 2021 Report Share Posted August 2, 2021 Quote As far as I understand, Fsuipc does not provide this data directly. Is it true? That's true. FSUIPC cannot tell you which airport you are at, or are near to. Paul Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.