How to use way types in my weighting?

I couldn’t figure this out by reading the docs and GraphHopper code. In my calcWeight function, I have access to the current edge being considered, but it doesn’t seem to contain way type information. I have tried to relate way types and edge flags to no good so far.

Can someone point me in the right direction?

Hi,

this is currently not included for most FlagEncoders. Have a look at the DataFlagEncoder, it stores the highway type and a couple of other things as well.

Best,
Robin