Astronomy API method allows a user to get up to date information for sunrise, sunset, moonrise, moonset, moon phase and illumination in json and xml.
| Field |
Data Type |
Description |
| sunrise |
string |
Sunrise local time |
| sunset |
string |
Sunset local time |
| moonrise |
string |
Moonrise local time |
| moonset |
string |
Moonset local time |
| moon_phase |
string |
Moon phases. Value returned:
- New Moon
- Waxing Crescent
- First Quarter
- Waxing Gibbous
- Full Moon
- Waning Gibbous
- Last Quarter
- Waning Crescent
|
| moon_illumination |
int |
Moon illumination |
| is_moon_up |
int |
1 = Yes or 0 =No Determine if the moon is currently up, based on moon set and moon rise time at the provided location and date. |
| is_sun_up |
int |
1 = Yes or 0 =No Determine if the sun is currently up, based on sunset and sunrise time at the provided location and date. |