[fixed] Distance check when purchasing a travel ticket - mantis 647

Change-Id: Ib99765bad2bdefb51abea5843a518ea0f4c91a9d