I have this problem when my anxiety is bad. Apparently, the bladder has a memory and the more you go the more you want to go. It needs retraining.
The thought of a long journey always makes the problem worse. Never go on a coach without a loo!
My 16 year old daughter is just the same.