Terminating Condition Not Understood

Why the solution only considered terminating condition for x1 and y1 only if last tourist spot is interesting why it is not considered for x2 and y2 in terminating condition. I think there must be condition for x2 and y2 also.

Both positions are related.
They go hand in hand. Please have a look at their relation in the explanation video. Its explained

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.