Orbit
Computing planetary positions solely based on the tutorials on the following site:
http://www.stjarnhimlen.se/comp/ppcomp.html
Usage
Node.js
// Compute mercury's orbital elements by timevar orbit = ; var mercury = orbitmercury; // pre-defined element in the APIvar time = "April 19, 1990"; // time to compute positions forvar mercuryElements = orbit;
Produces:
date: Thu Apr 19 1990 00:00:00 GMT- d: -3543 orbitalElements: N: 482162988259 i: 700452285 w: 29088158390799997 a: 0387098 e: 0205633019463 M: 6951529041759932 E: 8115715124786009 ecliptic: x: -03678208693993786 y: 0061084529098483234 z: 0038699088054971874 spherical: r: 03748614825201232 lon: 17057086510954474 lat: 5925527266740476 }