![enter image description here](
The diagram shows the system you have. You can work out $\theta$ and $\phi$ with standard trigonometric methods. Then $\phi-\theta$ gives you an angle, and you have the arclength of 790km. This allows you to compute the radius of the earth, and thus the circumference using $2\pi r$.