ooiservices/app/uframe/assetController.py
def convert_lat_lon(lat, lon):
    """
    This is a wrapper method for _get_latlon, and basically
    just handles packaging and returning a Lat/Lon pair.

    A update to this def will assign the directional value
    if needed (neg).  This is a result of an obscure bug
    found in testing.
    """
    try:

        _lat = _get_latlon(lat)
        _lon = _get_latlon(lon)
        if not (isinstance(lat, float) and isinstance(lon, float)):
            if "S" in lat:
                _lat = _lat*-1.0
            if "W" in lon:
                _lon = _lon*-1.0
        coords = (round(_lat, 4), round(_lon, 4))
        return coords
    except Exception as e:
        coords = (0.0, 0.0)
        return coords

    This is a wrapper method for _get_latlon, and basically
    just handles packaging and returning a Lat/Lon pair.

    A update to this def will assign the directional value
    if needed (neg).  This is a result of an obscure bug
    found in testing.
    
This is a wrapper method for _get_latlon, and basically
just handles packaging and returning a Lat/Lon pair.

A update to this def will assign the directional value
if needed (neg).  This is a result of an obscure bug
found in testing.
This is a wrapper method for _get_latlon and basically just handles packaging and returning a Lat / Lon pair . A update to this def will assign the directional value if needed ( neg ) . This is a result of an obscure bug found in testing .
def convert_lat_lon(lat, lon):
    try:
        _lat = _get_latlon(lat)
        _lon = _get_latlon(lon)
        if not (isinstance(lat, float) and isinstance(lon, float)):
            if "S" in lat:
                _lat = _lat*-1.0
            if "W" in lon:
                _lon = _lon*-1.0
        coords = (round(_lat, 4), round(_lon, 4))
        return coords
    except Exception as e:
        coords = (0.0, 0.0)
        return coords
def convert_lat_lon ( lat , lon ) : try : _lat = _get_latlon ( lat ) _lon = _get_latlon ( lon ) if not ( isinstance ( lat , float ) and isinstance ( lon , float ) ) : if "S" in lat : _lat = _lat * - 1.0 if "W" in lon : _lon = _lon * - 1.0 coords = ( round ( _lat , 4 ) , round ( _lon , 4 ) ) return coords except Exception as e : coords = ( 0.0 , 0.0 ) return coords
This is a wrapper method for _get_latlon, and basically
just handles packaging and returning a Lat/Lon pair.
This is a wrapper method for _get_latlon and basically just handles packaging and returning a Lat / Lon pair .
"""
    This is a wrapper method for _get_latlon, and basically
    just handles packaging and returning a Lat/Lon pair.

    A update to this def will assign the directional value
    if needed (neg).  This is a result of an obscure bug
    found in testing.
    """
lat
lon