in mapillary_tools/exif_read.py [0:0]
def extract_direction(self) -> Optional[float]:
"""
Extract image direction (i.e. compass, heading, bearing)
"""
fields = [
"GPS GPSImgDirection",
"EXIF GPS GPSImgDirection",
"GPS GPSTrack",
"EXIF GPS GPSTrack",
]
direction, _ = self._extract_alternative_fields(
fields, default=None, field_type=float
)
if direction is not None:
direction = normalize_bearing(direction, check_hex=True)
return direction