Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add geometry and distance to OsrmMatcher results #182

Open
nreinicke opened this issue May 17, 2024 · 0 comments
Open

Add geometry and distance to OsrmMatcher results #182

nreinicke opened this issue May 17, 2024 · 0 comments

Comments

@nreinicke
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant