This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import namedtuple | |
GPS = namedtuple("GPS", ["latitude", "longitude", "altitude"]) | |
__CARDINALS = {"N": 1, "S": -1, "E": 1, "W": -1} | |
def __parse_geo_location(geo_location, degree_digits, cardinal): | |
""" | |
Parses a geographic location into degrees, | |
geo_location being the location to parse, |