systeme-solaire / api-rest

API - The Solar System OpenData
https://api.le-systeme-solaire.net/rest/
MIT License
29 stars 0 forks source link

Add a way to know the bodies position #7

Open jblemee opened 3 years ago

jblemee commented 3 years ago

Hello,

First, thanks a lot for the great work here.

It would be very nice if we had a way to know the position of the bodies (for instance : by date), like it's possible here : https://en.tutiempo.net/astronomy/sun-earth-moon-3d.html or here : https://solarsystem.nasa.gov/resources/2515/real-time-real-data/

mistic100 commented 3 years ago

I second this. Didn't found any free API offering this kind of data yet.

https://astrologyapi.docs.apiary.io/#reference/0/planets/planets?console=1 is dead
https://astrologyapi.com/docs/api-ref/5/planets is very expansive

some documentation https://stjarnhimlen.se/comp/ppcomp.html

khrys63 commented 2 years ago

Hi, I try to work on this feature, but it's not very simple :(

khrys63 commented 2 years ago

without API, just an Javascript page : https://api.le-systeme-solaire.net/bodies-position-now.html for an observer in France

mistic100 commented 2 years ago

Hey sorry if is too late. I forgot to post here after finding this js library : https://www.npmjs.com/package/@tubular/astronomy
It supports both geocentric and heliocentric views, and many more information.

I used it for a Rainmeter skin https://github.com/mistic100/Rainmeter-Collection/tree/master/SolarSystem%2F%40Resources%2FScript