When facing the qiblah creates a genuine danger, or is impossible under compelling circumstances, prayer is offered in the available direction.
The dispensation is governed by capacity; ordinary travel, small inconvenience, or neglect in finding the direction do not amount to this type of danger.
Uncertainty about direction is a separate problem governed by inquiry and ijtihad.