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

Ruby net::HTTP POST API can not handle real OSRM API #1810

Closed
TheMarex opened this issue Dec 9, 2015 · 1 comment
Closed

Ruby net::HTTP POST API can not handle real OSRM API #1810

TheMarex opened this issue Dec 9, 2015 · 1 comment

Comments

@TheMarex
Copy link
Member

TheMarex commented Dec 9, 2015

Arguments in the OSRM API are position depended. For example:
/viaroute?loc=1,2&b=1&loc2,3 is not the same as /viaroute?loc=1,2&loc2,3&b=1.

However the API for post_form_uri takes a Hash of Arrays which will discard the original ordering. The offending line is here:

https://github.com/Project-OSRM/osrm-backend/pull/1804/files#diff-079dd5b69545a075b484ad4b63f902f5R26

/cc @freenerd

@freenerd
Copy link
Member

This was fixed for the tests with #1838

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

No branches or pull requests

2 participants