mappymatch icon indicating copy to clipboard operation
mappymatch copied to clipboard

Add geometry and distance to OsrmMatcher results

Open nreinicke opened this issue 1 year ago • 0 comments

As described in #181 we don't return geometry and distance attributes from the OsrmMatcher.

OSRM does return a geometry object from their matching API and so we could tack on &geometries=geojson to our OSRM query and then parse the geometry that gets returned. If we get it back in geojson, it looks like they might give us a matched geometry for each point and so it might be as simple as just intelligently indexing into the coordinate array when we parse the matches but we should confirm that.

nreinicke avatar May 17 '24 19:05 nreinicke