The greatest radial distance of an ellipse as measured from a focus. Taking in the equation of an ellipse
gives the apoapsis distance
Apoapsis for an orbit around the Earth is called apogee, and apoapsis for an orbit around the Sun is called aphelion.