For those with LineageOS+Snap Camera

As I noticed the “Snap” camera LineageOS uses odes not write correct compass data when held in horizontal mode.

Depending on which way you hold it, you need to batch add 90° or 270° to the angle before uploading, for example like this:

exiftool '-gpsimgdirection<${gpsimgdirection;$_=($_+90)%360}' *.jpg

Hope that helps, and OpenCamera writes the angle correctly.