Snap input points to matchResult

Is it possible to return a snapped version of the input points when using the map-matching algorithm? I know i can get a list of points along the snapped route from

matching.doWork(gpxEntries).getMergedPath().calcPoints()

but this may contain many more points than the input and doesn’t provide any way to identify if it contains the snapped version of the original points. I know I could use toLineString() and then get the nearest point on this line to each of the inputs, just wondered if there is a built in method I am missing?

2 Likes