The man from Edinburgh was on foot at the time of the crash