NREL / mappymatch

Pure-python package for map matching
http://mappymatch.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
57 stars 19 forks source link

Add geometry and distance to OsrmMatcher results #182

Open nreinicke opened 1 month ago

nreinicke commented 1 month ago

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.