经 runs vertical (think of the long 'main' threads on a loom running top-to-bottom, like lines of longitude), 纬 runs horizontal (the crosswise threads, like lines of latitude).
usage
Often appears compounded: 经纬线 (lines of latitude and longitude), 经纬度 (coordinates), 经纬万端 ('endlessly complex affairs').