Generation of Road Reference Heading using GPS Trajectories for Accurate Lane Departure Detection Topics: Accident Prevention; Navigation Systems; Road Safety and Transport Security; Security and Safety In Proceedings of the 7th International Conference on Vehicle Technology and Intelligent Transport Systems VEHITS - Volume 1, 584-593, 2021