To elaborate on the invariance of distance in 4d spacetime:
As I have previously shown, observers will disagree on distances in space and time depending on their inertial frame of reference. I will now demonstrate that we agree on the distance travelled by you on your bike to the shops as in the previous example.
It simplifies matters if we imagine a simple universe consisting of 1 spatial and 1 temporal dimension. Imagine that within our own inertial frame of reference we are spatially at rest but travelling at the speed of light along the time axis. The 1 spatial dimension happens to be a straight line that passes through your house and through the shops you are travelling to and on to infinity in either dimension. We will set the distance from your house to the shops as 1km in the positive direction.
Now we can calculate how far you travel in space and time on your journey according to your inertial frame of reference and mine.
It may seem counter-intuitive but you remain at rest within your own inertial frame of reference (you do not move any further away from yourself!) and you move along the time axis at the speed of light for 360 seconds. Note: there is a very tiny level of time and space dilation due to you moving relative to the span between your house and the shops, it will shorten by a fraction of a millimetre and you will gain a very tiny amount of time but we can ignore this for our calculations. Therefore the distance that you travel in spacetime according to you is the speed of light * 360 seconds = 107,925,284,880 meters.
Now imagine that my spaceship starts at the same point in space and time as you and moves in the positive spatial direction. According to me, moving away from you at 0.8 times the speed of light, you are moving in the negative spatial direction. To work out exactly how quickly we again use the formula V = V0 sqrt(1 - v^2/c^2) where V is my speed relative to C, V0 is my speed according to me, and c is the speed of light. We know I am moving at 0.8c so we can rearrange this formula to solve for V0. The surprising result is that according to me, I am travelling at 4/3c, faster than the speed of light! This may seem impossible but in reality I am not travelling faster than the speed of light, my perception that I am is due to time slowing down for me on board my ship. (Interestingly, the point at which one would think one was travelling at *exactly* the speed of light is c/sqrt2). Now that we know how fast you seem to be travelling away from me, we can work out how far you seem to travel to me in space and time. The distance that you travel is 216seconds * -4/3c (as you are moving in the negative direction according to me) – 600m (the distance that you travel according to me to reach the shops). This comes out at -86,340,227,304m. To calculate the distance in the temporal dimension we multiply c by 216 seconds to get 64,755,170,928m.
Now, these seem to wildly disagree with each other on the distance and time that you have travelled. By combining space and time into a 2 dimensional plane we can solve for the distance Z by using Pythagoras’ theorem Z^2 = X^2 + Y^2. Plugging in the numbers we get Z = sqrt(-86,340,227,304^2 + 64,755,170,928^2) = 107,925,284,880m, the same as the result we had previously obtained. Therefore we now agree on the distance in spacetime that you have travelled!
I have illustrated this with the diagram accompanying this post.
In this diagram we see that despite our differing perspectives on the time and space that you have travelled through that we both agree on the spacetime distance that you have travelled. In addition, anyone moving along the 1-dimensional universe that we have imagined in any direction and with any velocity will see the time and distance that you have travelled as somewhere on the semicircle. Therefore anyone in the universe can agree on the distance you have travelled!