private static int zigZagDecode(int n) {
    // https://developers.google.com/protocol-buffers/docs/encoding#types
    return ((n >> 1) ^ (-(n & 1)));
  }
Scales a geometry down by a factor of {@code 2^scale} without materializing an intermediate JTS geometry and
returns the encoded result.
planetiler-core/src/main/java/com/onthegomap/planetiler/VectorTile.java