diff --git a/iss.py b/iss.py index 044b370..3d0f67d 100644 --- a/iss.py +++ b/iss.py @@ -22,9 +22,10 @@ def get_location(): iss.compute(now) lon = degrees(iss.sublong) lat = degrees(iss.sublat) + elev = iss.elevation # Return the relevant timestamp and data - return {"timestamp": timegm(now.timetuple()), "iss_position": {"latitude": lat, "longitude": lon}} + return {"timestamp": timegm(now.timetuple()), "iss_position": {"latitude": lat, "longitude": lon, "elevation": elev}} def get_tle():