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.

Simple way to find aircraft location as an ICAO?

Featured Replies

First - GREAT forum! Really fits the bill for many, I think.Now my question: is there a way to retrieve aircraft location (using FSUIPC or some other way) when on the ground as an ICAO identifier, rather than LAT/LON? I've got an idea for an app that needs to know what airport the plane is at, what airport it's going to, and when it arrives. Open to suggestions!EDIT> I should mention I'm learing VB6 and VB.net - my programming skills are minimal, but I'm willing to learn anything!Thanks in advance,sg

[email protected] | 32gb RAM | EVGA GTX1080 8gb | Mostly P3Dv5 (also IL2:BoX, DCS, XP11)

That should be possible via XML Gauges, you can get the Nearest Airport information... if the closest airports distance is less than, say, 0.3 nm then you consider it 'at' the airport. I've never tried doing something like this in VB6/.net, but I guess its possible... Recently I've put some C header files on here that give you access to those variables, but it needs some C knowledge to get that running (how to make a dll, and how to make the dll fit to FS, etc). Greetings,Winti

  • Author

Thanks for that, Winti - I'll look for your header files. I actually want my program to run OUTSIDE of FS9, so the gauge route is not what I was looking for, nor the .dll module. I've been pouring through Pete's FSUIPC docs, but so far I've only been able to find LAT/LON and I'm not willing to do the ICAO lookup table myself, so...But it must be possible...

[email protected] | 32gb RAM | EVGA GTX1080 8gb | Mostly P3Dv5 (also IL2:BoX, DCS, XP11)

I don't think that GPS Info is already included in FSUIPC (but I may be wrong). Actually, when I was searching for that kind of information there was nobody who really could help me with it, that's why I found it out by myself and put together those header files. It's actually not that hard to use, a little help text is included in the beginning of the files.Here's the links again:(GPS Info) www.winterstiger.at/christoph/stuff/gpsprop.h(Additional A/C Info) www.winterstiger.at/christoph/stuff/ACParams.hHope that helps :)Winti

  • Author

Thanks for the links - I'll check 'em out! FSUIPC does provide access to a number of GPS related offsets, like current waypoint, next waypoint, etc. but using those would require that a flight plan be loaded in FS9 - I want to be able to determine the departure and arrival airports even for VFR flights...possible but not optimal.Thanks again!Best,sg

[email protected] | 32gb RAM | EVGA GTX1080 8gb | Mostly P3Dv5 (also IL2:BoX, DCS, XP11)

Hi Scott,the Lat/Long conversion isn't that complicated. You only need the Airport.txt file from 'CollectAirports' (?) of TTools and some easy math.So far I know there is no way to get the data out of FSUIPC. Do you nead the data for AI planes too, or just the users plane?

  • Author

I just need the info for the users plane...makes things simple. I think that lat/lon is the way to go! I just didn't want to have to compare location to the airport list to speed things up if I could get an ICAO instead...While I've got you here, Markus, I have a question for you: IF you don't mind sharing, could you tell me where you got the runway length info for catagorizing airports in GA-traffic? And, was that the only criteria you used for defining what type of airport each was?Thanks a ton, gang!Best,sg

[email protected] | 32gb RAM | EVGA GTX1080 8gb | Mostly P3Dv5 (also IL2:BoX, DCS, XP11)

Hi Scott,the runway length info comes direct from the Airport BGL file. 'GA-Traffic' read the default APxxx.BGL and AFCAD2 generated files and extract information from this.The catagorizing is runway length, number of runways, surface and ILS. All data come from the BGL.>While I've got you here, Markus, I have a question for you: >IF you don't mind sharing, could you tell me where you got the>runway length info for catagorizing airports in GA-traffic? >And, was that the only criteria you used for defining what>type of airport each was?>>Thanks a ton, gang!>Best,>sg

  • Author

Wow. That's more than I'm able to tackle at this point...maybe after I get some code done, I could drop you an email, we could discuss a little collaboration? My project is just off the ground, so that would be a few weeks away yet...you know how to find me.Thanks for all the info!sg

[email protected] | 32gb RAM | EVGA GTX1080 8gb | Mostly P3Dv5 (also IL2:BoX, DCS, XP11)

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.