class CoordinateUtils {

    public static double getLongitudeM180P180(double longitude) {
        double newLong = longitude % 360;
        if (newLong > 180) {
            newLong -= 360;
        }
        if (newLong < -180) {
            newLong += 360;
        }
        return newLong;
    }

}