public byte asByte() {
    return (byte) protobufType.getNumber();
  }
Returns the type of a WKT-encoded geometry without needing to deserialize the whole thing.
planetiler-core/src/main/java/com/onthegomap/planetiler/geo/GeometryType.java