code: public static double longitudeDiff(double a, double b) {
          a = to180(a);
          b = to180(b);
          return Math.abs(to180(a - b));
      }
docs: Returns the difference between two longitude values. The returned value
  is always >=0.
  
  @param a
  @param b
  @return