Cube-based earth abstraction, using 3 coordinates representing the x, y, and z distance from the center of the Earth. Part of PostgreSQL earthdistance extension. https://www.postgresql.org/docs/12/earthdistance.html
earthdistance