🔭Observer Parameters
When requesting for location and/or date-time related data, Observer parameters must be sent in the request.
Last updated
When requesting for location and/or date-time related data, Observer parameters must be sent in the request.
Last updated
Observer Parameters include the current observer's location and other information. The casing of the properties changes from camel case to snake case when doing a GET request.
Astronomy API treats the time requested, as the observer's time. It finds the timezone of the user based on the location specified by longitude
and latitude
. The returned times will be as same as the time zone requested.
Parameter
Required
Description
Sample Value
longitude
Yes
Longitude of the observer's location, as Float
-84.39733
latitude
Yes
Latitude of the observer's location, as Float
33.775867
elevation
Yes
Elevation from the sea in Meters as Number
50
from_date / fromDate
Yes
Starting date as Date. When doing a GET request from_date must be used.
2018-12-20
to_date / toDate
Yes
Ending date as Date. When doing a GET request to_date must be used.
2018-12-22
time
Yes
Observer's time as Time
08:00:00