SDK JS
    Preparing search index...
    • Sample the sun's altitude/azimuth at evenly-spaced instants across one local day.

      Parameters

      • day: Date

        Any instant on the UTC calendar day to sample.

      • lng: number

        Longitude in degrees (also references the local solar time).

      • lat: number

        Latitude in degrees.

      • samples: number = 49

        Number of evenly-spaced samples across the day; clamped to a minimum of 2. Default 49.

      Returns SunSample[]

      Samples ordered by min from 0 to 1440, suitable for buildArcPath.