Please reason step by step, and put your final answer within \boxed{}.
As shown in the figure, Person A and Person B travel along the shortest route from point $A$ to point $B$. How many ways are there for them to travel without crossing routes (there are no other common points except for points $A$ and $B$)?
user