I was trying to use the DataFlagEncoder, instead of using CarFlagEncoder, as you suggested to retrieve road type from matched edges. However when I instantiate the MapMatching class I get “RuntimeExepcetion: do not call getMaxSpeed”.
I’ve had a look at the code of the DataFlagEncoder and this method is not supposed to be called. I’ve also seen there is a getMaxPossibleSpeed which should work. The call comes from FastestWeighting.
Should we use another weighting method instead in order to use the DataFlagEncoder? In this case, which one should I use?
By the way, how can I ensure only car routes are enabled when I use the more generic DataFlagEncoder? Should I implement my own CarFlagEncoder subclass to store the route info myself?