AstronomyDayEvent

public struct AstronomyDayEvent : Codable

Astronomy Day Event

  • Altitude of the center of the queried astronomical object above an ideal horizon. Only for meridian type events.

    • Type: Float (degrees)

    Declaration

    Swift

    public let altitude: Float?
  • Horizontal direction of the astronomical object at set/rise time (referring to true north). North is 0 degrees, east is 90 degrees, south is 180 degrees and west is 270 degrees. Only for rise and set type events.

    • Type: Float (degrees)

    Declaration

    Swift

    public let azimuth: Float
  • Distance of the earth’s center to the center of the queried astronomical object in kilometers. Only for meridian type events.

    Declaration

    Swift

    public let distance: Int?
  • Local time at which the event is happening in ISO 8601 format (including UTC offset). Only returned if requested by specifying the parameter isotime.

    • Type: String/ISO8601 Timestamp
    • Example: 2012-04-17T00:57:42+02:00

    Declaration

    Swift

    public let isotime: Date?
  • Indicates the type of the event.

    Declaration

    Swift

    public let type: AstronomyEventCodes.RawValue?
  • UTC time at which the event is happening in ISO 8601 format. Only returned if requested by specifying the parameter utctime.

    • Example: 2012-04-16T22:57:42

    Declaration

    Swift

    public let utctime: Date?
  • The fraction of the Moon’s surface illuminated by the Sun’s rays as seen from the selected location. Only for the moon for meridian type events.

    Declaration

    Swift

    public let illuminated: Float?
  • The counterclockwise angle of the midpoint of the Moon’s bright limb as seen from the selected location. Only for the moon for meridian type events.

    Declaration

    Swift

    public let posangle: Float?