Jump to content

How to find out departure airport? and At the gate?


Recommended Posts

Pretty much says it, how do I go about finding out the ICAO code of the departure airport with FSUIPC? I scanned all the GPS offsets but only saw destination airport and prev/next waypoint.

And to kill both birds with the same stone (if I aim right), is there a way to find out (or derive from somewhere) whether the a/c is at the gate ?

Link to comment
Share on other sites

Pretty much says it, how do I go about finding out the ICAO code of the departure airport with FSUIPC?

Departure airport of what? Your own plane?

Sorry, but I don't think there's any way of getting any information about your own aircraft's routing unless you've filed a Plan, and then it is only what might be obtained from the GPS data, which is a bit iffy as far as I've seen.

Most programs which deal with this sort of thing do so by checking the nearest airport in a data base, using the aircraft Latitude/Longitude which you can read quite accurately.

And to kill both birds with the same stone (if I aim right), is there a way to find out (or derive from somewhere) whether the a/c is at the gate ?

Again, from the Lat/Lon, and using a database of Gates created from a scan of the BGLs containing AFD information.

You are most welcome to use my MakeRunways utility which creates such databases. See the Downloads announcements above.

Regards

Pete

Link to comment
Share on other sites

Actually I just found a way to do it :-) If the aicraft is still at the gate or runway of the departure airport this information can easily be obtained by reading the offset named "FS2004 GPS Previous WP ID string" which nicely returns a string with the ICAO code.

Link to comment
Share on other sites

Actually I just found a way to do it :-) If the aicraft is still at the gate or runway of the departure airport this information can easily be obtained by reading the offset named "FS2004 GPS Previous WP ID string" which nicely returns a string with the ICAO code.

Does this work even if you don't file a flight plan?

Pete

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 months later...

What I do is grab the 23000 airports out of flight sim and place them somewhere I can get to them easily (database works good for this).

Then I check the latitude and longitude and if they are within 4 miles of where they are at then they must be at that airport.

I know that last sentence did not make any sense LOL.....

Basically you check both the latitude and longitude of the current location and match those lat,lon settings against the database.

Search google for 1 mile in latitude and longitude for calculations, I forget them at the moment.

Mike

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