This question already has an answer here:
I have a project where the user enters the name of the airport. We fetch the wind direction (degrees) for that airport. Then we use the wind direction and the data about the runways at that airport to calculate which runways the planes will land at. What is the best way to do that?
My approach:
Find the compass direction, for instance 90 degrees is equivalent to east. Then, if the direction of the wind is east, the plane will land from the west (to land against the wind).
My question:
How do I calculate which runway the plane will use to land? There are multiple runways at some airports. Do we use runway heading, or runway longitude/latitude, assuming wind is the only factor affecting landing? Is there a mathematical way to calculate which runway the plane will use? I am asking because I will have to do some calculation to accurately give that answer to the user.
Any expert/aviation help would be greatly appreciated.
Also, I am using the airports and runways table from ourairports.com/data.
Also, what do HE and LE mean in the context of runways?