Skip to content

Routing wrapper refactor #1372

Closed
Closed

Description

@jcoupey

As a follow-up on adding support for OSRM POST requests in #1365, we could make a couple things simpler:

  1. 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.
  2. 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

  1. added this to the v1.16.0 milestone on Nov 17, 2026
  2. jcoupey commented on Nov 17, 2026

    @jcoupey
    CollaboratorAuthor

    Done in #1373.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions