Is there a Python (or another language) implementation of a function that has as an input a map-matched trajectory and a ground-truth trajectory and calculates the Route Mismatch Fraction that is first mentioned in Hidden Markov Map Matching Through Noise and Sparseness Paul Newson and John Krumm.
Image explanation of Route Mismatch Fraction
Map matching is the problem of how to match recorded geographic coordinates to a logical model of the real world, typically using some form of Geographic Information System. The most common approach is to take recorded, serial location points (e.g. from GPS) and relate them to edges in an existing street graph (network), usually in a sorted list representing the travel of a user or vehicle. Matching observations to a logical model in this way has applications in satellites navigation, GPS tracking of freight, and transportation engineering.
I've looked everywhere online and tried everything I know to no avail.