import math


def bearingCoord (lat0, lon0, lat1, lon1):
    """
    Bearing from one point to another in degrees (0-360).
    """
    dLat = lat1 - lat0
    dLon = lon1 - lon0
    y = math.sin(math.radians(dLon)) * math.cos(math.radians(lat1))
    x = math.cos(math.radians(lat0)) * math.sin(math.radians(lat1)) - \
        math.sin(math.radians(lat0)) * math.cos(math.radians(lat1)) * \
        math.cos(math.radians(dLon))
    bearing = math.degrees(math.atan2(y, x))
    if(bearing < 0.0):
        bearing = bearing + 360.0
    return bearing