- init the typeEncodedValue via overwriting defineWayBits (call super.defineWayBits as first call) and
- in handleWayTags you call newFlags = typeEncodedValue.setValue(oldFlags, typeAsInt);
Then create a method like encoder.getType(long flags) so that you can use the encoder e.g. in your custom weighting that depends on the type
like how to add new propertzy without making damages to the other tags like speed,...
As long as you use EncodedValue or EncodedDoubleValue and init them in defineWayBits this is not possible