def gnss_location_to_position_converter(result):
    """
    Converts a GNSS location result into position type.
    """

    ret = {
        "_type": "pos",
        "_stamp": result["_stamp"],
        "utc": result["time_utc"],
        "loc": {
            "lat": result["lat"],
            "lon": result["lon"]
        },
        "alt": result["alt"],
        "sog": result["sog_km"],
        "cog": result["cog"],
        "nsat": result["nsat"],
    }

    return ret