SDK JS
    Preparing search index...
    • Classify the astronomical twilight band from the solar altitude.

      Parameters

      • altitudeDeg: number

        Solar altitude above the horizon, degrees.

      Returns TwilightPhase

      The TwilightPhase: 'day' (≥6°), 'golden' (−0.833°..6°), 'civil' (−6°..−0.833°), 'nautical' (−12°..−6°), 'astronomical' (−18°..−12°), else 'night'.