api.radiantdrift.com
  • Radiant Drift API
    • Subscription Plans
    • Educational Use and Research
    • API End Points
  • Getting Started
    • About your account
    • Request Authentication
    • Managing API Keys
    • OpenAPI Specification
    • Date/Time Format
    • Validity, Accuracy, and Precision
  • Usage Guidelines
    • Acceptable Use Policy
    • Usage Credits and Call Costs
    • Attribution
    • Rate Limits
  • Julian Day
  • Delta-T
  • Rise, Transit, Set Times
  • Body Position
    • Request Parameters
    • Position at a given time
    • Positions for a time range
    • Observer location
  • Solar Eclipses
    • Embeddable Web Widgets
      • Eclipse Map
      • Eclipse Simulator
    • Besselian Elements
    • Local Circumstances
    • Eclipse Paths
    • Five Millennium Canon of Solar Eclipses
  • The Moon
    • Lunar Libration
    • Lunar Limb Profile
  • Geospatial
    • Geodesic
    • Elevation
  • Reference
    • Definitions
    • Errors
Powered by GitBook
On this page

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)

PreviousRise, Transit, Set TimesNextRequest Parameters

Last updated 11 months ago