public static int getDirectionAngle()

in common/src/main/java/org/apache/flink/training/exercises/common/utils/GeoUtils.java [227:234]


    public static int getDirectionAngle(
            float startLon, float startLat, float destLon, float destLat) {

        double x = destLat - startLat;
        double y = (destLon - startLon) * Math.cos(startLat);

        return (int) Math.toDegrees(Math.atan2(x, y)) + 179;
    }