Function to calculate night time along a travel

Closed Posted 6 years ago Paid on delivery
Closed Paid on delivery

I need a javascript function that will calculate the night time along a journey between point A and B.

The parameters of the function are :

- the date as timestamp in ms,

- point A and B coordinates as (degrees that are positive to the north, degrees that are positive to the east),

- departure time and arrival time in UTC as HHmm,

The function should return how many minutes the journey was during the night time (which is when the sun is more than 6 degrees below the horizon).

Astrophysics JavaScript

Project ID: #14626822

About the project

6 proposals Remote project Active 6 years ago

6 freelancers are bidding on average €23 for this job

shihan033010

A proposal has not yet been provided

€20 EUR in 1 day
(98 Reviews)
5.6
BadrMahmoud2

I have already got it done. If you accept I woud only send it for you. am really good with these javascript functions I guess xD

€12 EUR in 1 day
(0 Reviews)
0.0
boulhech955

A proposal has not yet been provided

€24 EUR in 1 day
(0 Reviews)
0.0
brubinson

A proposal has not yet been provided

€19 EUR in 1 day
(0 Reviews)
0.0
khoddam

Hello I am familiar with astronomical calculations and finding sun set and rise time. The question is that is this travel by air plane? If so we should consider the effect of altitude on sun's elevation and we can a More

€30 EUR in 1 day
(0 Reviews)
0.0