functions – If URL x, load template, else single.php

I have custom posts that I want to be shown in a different template.

Right now I have this:

All other default posts are on: aka

Basically, I’m trying to find a function.php code, that identifies URL and applies another template.

So, if path, then load traveltemplate.php

else, single.php

Any help would be appreciated.