The station is not moving inside a sector. The sector moves, but it can be identified through the same coordinates every time. (system x,system y,system z,orbit,position)
Since the gates basically work on /change_sector, as long as the server knows what sector the station is in, it can get you...