Alp Posted August 2, 2021 Report 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
Paul Henty Posted August 2, 2021 Report 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
Alp Posted August 2, 2021 Author Report Posted August 2, 2021 Thank you. As far as I understand, Fsuipc does not provide this data directly. Is it true?
Paul Henty Posted August 2, 2021 Report 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now