Get the current orbit of the active vessel (by KWP dev team)

getShipOrbit

Vessel
CelestialBody
Orbit

Api Use:


        var data = JSON.stringify(
            {"ID":"User Provided ID",
              "Action":"getShipOrbit",
              "parameters":{
                    
              }
            });
        var xhr = new XMLHttpRequest();

        xhr.addEventListener("readystatechange", function() {
            if(this.readyState === 4) {
                console.log(this.responseText);
            }
        });

        xhr.open("Post", "http://localhost:8080/api");
        xhr.setRequestHeader("Content-Type","application/json");
        xhr.send(data);
        

Parameters