nabeelio / phpvms

virtual airline management
http://www.phpvms.net
Other
170 stars 139 forks source link

Accept alternative airport as new destination #1572

Closed wbox closed 10 months ago

wbox commented 1 year ago

Is your feature request related to a problem? Please describe. Whenever is required to land on the alternative airport due to weather or other reasons the system assumes you landed on the original destination airport.

Describe the solution you'd like It would be great if the system places the aircraft and the pilot on the landed airport. I understand the Virtual Airlines would have plan flights departing from the alternative airports but I don't think this would be an issue since most of the time the airlines have regular flights to the these airports anyway.

Describe alternatives you've considered As an alternative, the system could have an "Deviation landing report" page where the pilot would "file a report" explaining why he/she had to land on the alternative airport. This report could be auto approved as well as required a staff to approve. It all depends on how the Virtual Airlines' manager decide to do it. When the report is filed and approved the pilot and the aircraft would be place to the airport where they have landed and not the one filed on the flight plan.

Additional context This would provide even more realism to the Virtual Airlines operations using phpvms.

FatihKoz commented 1 year ago

I do agree placing the pilot and aircraft to the diversion airport, however there are some problems with this

So, placing assets is easy and can be done with a simple code change, we need to think about possible scenarios and/or admin side solutions to fix them etc.

nabeelio commented 1 year ago

If there's no flights out, etc, I think maybe a general feature to "jump" to another airport with some cost makes sense. Maybe a setting for jumpseat cost per mile or something. And that can be used if a pilot is stranded or just wants to fly out from another airport. Thoughts?

FatihKoz commented 1 year ago

Well, to be honest this will be down to the airline... Some are strict, not allowing people to fly or move freely, some relaxed. So if there are no flights out from diversion airport, then this must be considered for moving or allowing people to jump with options.

As an alternative option, we can define a "move back to departure airport" too... I mean if VA does not want to allow lookups or and does not want any movement about diversions, then we can move the assets back to the starting point instead of destination or diversion airports.

I am calculating "jump seat travel" prices per distance, so it would make sense but what will be the cost of moving the aircraft ? I am calculating the fuel flow and using distance + other expenses when moving aircraft, so will v7 do that too ?

In the end, moving people is easy :) Side effects (cost, flights, limits) and options are really tricky ;)

nabeelio commented 1 year ago

Good points, I was just addressing the pilot moving. Maybe there are jump costs for a subfleet too? It can be enabled/disabled. Not explicitly to the departure airport, but maybe that's an option and also only to hubs? And costs for the aircraft make are just fuel and distance?

FatihKoz commented 1 year ago

Aircraft transfer cost (fuel flow per nautical mile * fuel price) * distance or make it time based like (fuel flow per minute * fuel price) * ( distance / average cruise speed )

Either way, we can't make a fixed per distance price... It should vary between aircraft models, imagine moving a C172 and a B748 would cost the same between JFK and BOS :) It would not look good.