osrm-backend
osrm-backend copied to clipboard
feat(match): always collapse legs in sub_matchings route results
Issue
Hi, I'm proposing an evolution in the match API, I've open an issue for the occasion : Legs are not collapsed in /match if no waypoints are provided
Do you think this is a good approach? I need both multiple matchings and leg collapsing to work, but they don't seem to be compatible because of the waypoints parameter. I can’t set waypoints, since I want to retrieve multiple sub-matchings. However, without it, I can't get the legs to collapse properly. I felt stuck, so I ended up with this workaround
Tasklist
- [ ] CHANGELOG.md entry (How to write a changelog entry)
- [ ] update relevant Wiki pages
- [ ] add tests (see testing documentation)
- [ ] review
- [ ] adjust for comments