Skip to content

Commit

Permalink
Use GET to acces OSRM in place of POST, since there is nothing to POS…
Browse files Browse the repository at this point in the history
…T and OSRM 4.8.1 return error on POST to /table
  • Loading branch information
frodrigo committed Nov 7, 2015
1 parent 8ba805a commit 0181fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loaders/osrm_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class osrm_wrapper : public problem_io<distance_t>{
std::string build_query(const std::vector<std::pair<double, double>>& locations,
std::string service, std::string extra_args = "") const{
// Building query for osrm-routed
std::string query = "POST /" + service + "?";
std::string query = "GET /" + service + "?";

// Adding locations.
for(auto const& location: locations){
Expand Down

0 comments on commit 0181fa3

Please sign in to comment.