Page 1 of 1

NEW RANDOM FLIGHT GENERATOR!

PostPosted: 28 Feb 2015 16:20
by AS 2 Tom Little
Stumped on where to fly next? AirSource has another solution for you! A new RANDOM FLIGHT GENERATOR is available for our members. AirSource programmer Joe Hamilton has dedicated weeks on this neat feature which was requested as part of our EMT meeting in January, giving yet more variety for our Union. Check it out today, and enjoy your flights!

Re: NEW RANDOM FLIGHT GENERATOR!

PostPosted: 01 Mar 2015 13:08
by AS201 Joe
Yes, I broke it when adding "Current Location" last night. Should be running correctly now.

Re: NEW RANDOM FLIGHT GENERATOR!

PostPosted: 01 Mar 2015 13:32
by Buckeye Roy
You read my mind Joe. :) I was going to ask you if it would be possible to add the current location.

Great job!!

Re: NEW RANDOM FLIGHT GENERATOR!

PostPosted: 01 Mar 2015 13:33
by AS201 Joe
Thanks, Roy. Yeah, I meant to add it from the beginning but it slipped my mind.

Re: NEW RANDOM FLIGHT GENERATOR!

PostPosted: 01 Mar 2015 15:11
by AS283 Roger Dean
Yet another very cool option. Nice work! :D

Re: NEW RANDOM FLIGHT GENERATOR!

PostPosted: 01 Mar 2015 18:42
by AS201 Joe
Update: fixing one thing...broke another. The GA flights, although working and usable, are not showing as intended. A fix is in the works

Re: NEW RANDOM FLIGHT GENERATOR!

PostPosted: 02 Mar 2015 14:15
by AS37 Norm Edwards
Thanks Joe for putting the hard work into this, i'm sure our members will take advantage of this :)

Re: NEW RANDOM FLIGHT GENERATOR!

PostPosted: 04 Mar 2015 14:52
by AS201 Joe
Sorry for the delay. Best I can tell, working as it should be now.

Re: NEW RANDOM FLIGHT GENERATOR!

PostPosted: 11 Mar 2015 17:04
by Buckeye Roy
Joe,

Went to use the Random Flight Generator, but the starting airport is the airport you are currently at. Shows you as logged in, instead of me. I'm currently located at KBOS Boston, not KCPR.

See attached:
generator.JPG

Re: NEW RANDOM FLIGHT GENERATOR!

PostPosted: 11 Mar 2015 17:56
by AS201 Joe
Sorry, Roy. I have to remember to take that out when I re-upload it :oops:

Fixed now.

Re: NEW RANDOM FLIGHT GENERATOR!

PostPosted: 11 Mar 2015 23:15
by Buckeye Roy
Thanks Joe.

Re: NEW RANDOM FLIGHT GENERATOR!

PostPosted: 23 Mar 2015 19:24
by AS201 Joe
*** updated. Now working the way one would expect

Changes include:

- set "Current Location" as the default departure option (figured it would be the most used selection)
- added a check to make sure only flights to/from the selected country are used.

- GA flight generator was completely re-written
- all flights generated with single leg (unless both selections are set as Any)
- generated flights will not have more than 2 legs (see above)
- uses only current aircraft. Will only generate a new lease if needed.