Finished the calculation of addresses of stations