rulings on fasting while travelling

if im travelling from tehran to qom, can i fast? (assuming i leave before dhur) what are the general rulings