Note: how much effort you spend on this compared to rest of game ought to equate to how much time players spend in these environments compared to rest of game.
Everything would be easier if the earth were flat and smaller.
I hope you don't want to implement the curvature of the earth
I hope you don't want to implement the curvature of the earth.