pub struct AstronomyCurrent {
pub isotime: Option<DateTime>,
pub utctime: Option<DateTime>,
pub altitude: f64,
pub azimuth: f64,
pub distance: f64,
pub illuminated: Option<f64>,
pub posangle: Option<f64>,
pub moonphase: Option<MoonPhase>,
}Expand description
Current information about an astronomical object.
Fields§
§isotime: Option<DateTime>Local time stamp for the data in ISO 8601 format (including UTC offset). Only returned if requested by specifying the parameter isotime.
Example: 2012-04-17T00:57:42+02:00
utctime: Option<DateTime>UTC time stamp for the data in ISO 8601 format. Only returned if requested by specifying the parameter utctime.
altitude: f64Altitude of the center of the queried astronomical object above an ideal horizon.
azimuth: f64Horizontal 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.
distance: f64Distance of the earth’s center to the center of the queried astronomical object in kilometers.
illuminated: Option<f64>The fraction of the Moon’s surface illuminated by the Sun’s rays as seen from the selected location. Only available for the moon object.
posangle: Option<f64>The counterclockwise angle of the midpoint of the Moon’s bright limb as seen from the selected location. Only available for the moon object.
moonphase: Option<MoonPhase>The current phase of the moon. Only available for the moon object.