You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a follow-up on adding support for OSRM POST requests in #1365, we could make a couple things simpler:
Now that we have two different wrappers for osrm-routed, it would make sense to factor in only the common behavior in OsrmRoutedWrapper that would become an abstract class, then inherit from that for two dedicated child classes, e.g. OsrmGetWrapper and OsrmPostWrapper.
The new OSRM POST implementation builds the payload using a structured rapidjson object that is then serialized to a string appended to the POST body. This is cleaner than what we have currently for ORS and Valhalla where the json payload is built manually by piecing together bits of strings. For readability and consistency we could switch those to using rapidjson objects in the same way.
Activity
jcoupey commentedon Nov 17, 2026
Done in #1373.