I would like to get an average azimuth of a route (like slope in linear regression).
I tried using linear regression to calculate a slope and convert that slope to degrees (azimuth), but I got the wrong result. The reason is probably that I used geographic coordinates (lon, lat degrees) as an input.
Should I convert coordinates to some projected coordinate system that preserves correct angles? Maybe Azimuthal Equidistant or Lambert Azimuthal Equal Area projection? And use these coordinates in linear regression calculation?
Or is there another way to calculate the average azimuth of a route?