When is one considered to be traveling?
One is considered to be travelling when he reaches a distance from the border of his city that he cannot see the last person or monument that was at the border of his city. This is called Hadd Al-Tarakhus, after which one can start praying qasr. The distance after which one is considered to be travelling with the intention of completing the legal distance of travel.