-
Notifications
You must be signed in to change notification settings - Fork 5
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
limited OSRM native routing API #98
limited OSRM native routing API #98
Conversation
…rameters, and ignored when not. OSRM controller's writeRouteResponse is being implemnted, but it will need modifications of RouteResponse class.
…. Slight edition of routeResponse and osrmSource classes to do so.
TODO : * complete logging and varible check * test the code
* check result to see if every property is valid and exact. * adapt getcapabilities to OSRM API capabilities.
The current state (d9d931b) has only been testing on a singular routing request, with intermediates coordinates / waypoints. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks ! ;)
Limited OSRM native routing API for road2
Linked to issue #87.
This PR covers only routing request and responses with OSRM formalism, and using an OSRM source engine.
OSRM query parameters, mandatory or not, are used if they already had an equivalent in road2's code.
Other optional parameters are ignored.
Aside from these ignored paramters, the request and response are compatible with OSRM specifications.
routeRequest
has been updated with a property namedengineExtras
, a dictionary designed to contain engine response properties used by an API other than "simple". As an example, OSRM waypoint's distance to requested coordinates is such a property.osrmSource
has been updated to setrouteRequest.engineExtras
with this kind of additional properties, necesssary to craft OSRM native API response.