public static final long mortonEncode(final String hash){
  int level=11;
  long b;
  long l=0L;
  for (  char c : hash.toCharArray()) {
    b=(long)(BASE_32_STRING.indexOf(c));
    l|=(b << ((level-- * 5) + MORTON_OFFSET));
  }
  return BitUtil.flipFlop(l);
}

public static final long mortonEncode ( final String hash ) { int level = 11 ; long b ; long l = 0L ; for ( char c : hash . toCharArray ( ) ) { b = ( long ) ( BASE_32_STRING . indexOf ( c ) ) ; l |= ( b << ( ( level -- * 5 ) + MORTON_OFFSET ) ) ; } return BitUtil . flipFlop ( l ) ; }
encode to a morton long value from a given geohash string
