@sidereal You have to assume a spherical train

en.m.wikipedia.org/wiki/Spheri