Hi,
Thank you for posting your query.
Most likely, you suffered from 
syncope (common 
fainting), which was precipitated by exhaustion of journey, heat and micturition (passing urine).
There is no need to worry, as generally it does not recur.
However, it would be useful to 
consult a neurologist to confirm the diagnosis.
Please get back if you require any additional information.
Best wishes,
Dr Sudhir Kumar MD (Internal Medicine), DM (Neurology)
Senior Consultant Neurologist
Apollo Hospitals, Hyderabad,
My personal URL on this website:  http://bit.ly/Dr-Sudhir-kumar 
My email: drsudhirkumar@yahoo.com