How can I calculate the distance of a position on earth to a satellite (for example a GPS satellite)? The satellites position is exactly known by its ephemeris data.
In a related question I've asked how to obtain those positions from the ephemeris: How to calculate position of GPS Satellite with transmitted ephemeris data?
rootOfA;deltaN;week;toc;af0;af1;af2;e;toe;omega;crs;cus;cuc;cis;cic;crc;i0;iDot;omega0;omegaDot;m0;tgd;
it's transmitted by the satellite and i'm fetching the data via the ublox ubx-raw protocol $\endgroup$