Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Procedure to calculate in-air travel time between two points #5

Open
kognise opened this issue May 5, 2022 · 2 comments
Open

Procedure to calculate in-air travel time between two points #5

kognise opened this issue May 5, 2022 · 2 comments
Labels
blocked This issue is blocked by another issue. enhancement New feature or request
Milestone

Comments

@kognise
Copy link
Member

kognise commented May 5, 2022

Start with straight-line distance. In the future, better calculations based on route and weather?

@kmoberg
Copy link
Member

kmoberg commented May 7, 2022

Formula for calculating distance between two coordinates:

d = ( 3963 * (acos((sin(lat1) * sin (lat2)) + (cos(lat1) * cos(lat2) * cos(lon2 - lon1)))))

Note the coordinates need to be calculated as radians, so in practice use rad(lat1) etc.

To get the time to travel this distance, use formula to get time in minutes:

t = ((d / s) * 60)

This does NOT account for weather, which is a problem. I don't know of a good data source for winds aloft, however, as long as we're using groundspeed to calculate time to waypoint, it shouldn't matter?

@kmoberg
Copy link
Member

kmoberg commented May 7, 2022

Also dependent on #13 .

@kmoberg kmoberg added enhancement New feature or request blocked This issue is blocked by another issue. labels May 7, 2022
@kmoberg kmoberg added this to the Backend MVP milestone May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked This issue is blocked by another issue. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants