Confidence level MapMatching

Hello !

I notice that MapMatching is not returning any value for informing the level of confidence in the result.
I was thinking on implementing my own confidence value following the next approach

Get the raw points and connect them with a straight line. Compare this route with the map matched one using a library to get the similarity index between them. Does it make sense? Do you suggest any other approach?

Thanks in advance.