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

Snap to multiple locations in map matching #1434

Closed
aoles opened this issue May 10, 2023 · 1 comment
Closed

Snap to multiple locations in map matching #1434

aoles opened this issue May 10, 2023 · 1 comment

Comments

@aoles
Copy link
Member

aoles commented May 10, 2023

The method which was originally used for obtaining multiple snap points has been removed in GH 4.0. For now this has been circumvented by snapping to the closest point. This might lead to sub-optimal results and incorrect matches, as the closest snapping point might not lie on the edge which one wants to match to. Therefore, for reliable map-matching the feature of matching to multiple points needs to re-introduced.

// TODO Postponed: find out how to do this now: List<Snap> qResults = locationIndex.findNClosest(lat, lon, edgeFilter);
// TODO: this is just a temporary work-around for the previous line
List<Snap> qResults = List.of(locationIndex.findClosest(lat, lon, edgeFilter));

@aoles
Copy link
Member Author

aoles commented Jun 12, 2023

Fixed via #1457.

@aoles aoles closed this as completed Jun 12, 2023
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