Body Position
Calculating the position of the Sun, Moon, and stars
The body-position
end point calculates the position of one or more bodies (e.g. the Sun, and/or Moon) at a given time, or over a given time range and interval.
The general form of a call to this end point is as follows:
axios({
"method": "GET",
"url": "https://api.radiantdrift.com/body-position/DATE_TIME_FROM",
"params": {
"body": "[BODIES]"
},
})
curl "https://api.radiantdrift.com/body-position/DATE_TIME_FROM/?body=BODIES"
Specific examples are given in the following sections.
Supported Bodies
The following values are accepted for the body
parameter:
sun
moon
gc
(the Galactic Center)
Last updated