code: public static String encodeHash(LatLong p, int length) {
          return encodeHash(p.getLat(), p.getLon(), length);
      }
docs: Returns a geohash of given length for the given WGS84 point.
  
  @param p
  point
  @param length
  length of hash
  @return hash at point of given length