Skip to content

Commit

Permalink
No longer ignore curbside=any for GET requests
Browse files Browse the repository at this point in the history
  • Loading branch information
easbar committed Dec 13, 2019
1 parent af0993f commit fc26dd1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
import static com.graphhopper.api.GraphHopperMatrixWeb.*;
import static com.graphhopper.util.Helper.round6;
import static com.graphhopper.util.Helper.toLowerCase;
import static com.graphhopper.util.Parameters.Curbsides.CURBSIDE_ANY;
import static com.graphhopper.util.Parameters.Routing.CALC_POINTS;
import static com.graphhopper.util.Parameters.Routing.INSTRUCTIONS;

Expand Down Expand Up @@ -324,9 +323,9 @@ private Request createGetRequest(GHRequest ghRequest) {
}
}

// append *all* curbsides only if at least *one* is not CURBSIDE_ANY
// append *all* curbsides only if at least *one* is not empty
for (String checkEitherSide : ghRequest.getCurbsides()) {
if (!checkEitherSide.equals(CURBSIDE_ANY)) {
if (!checkEitherSide.isEmpty()) {
for (String curbside : ghRequest.getCurbsides()) {
url += "&" + Parameters.Routing.CURBSIDE + "=" + WebHelper.encodeURL(curbside);
}
Expand Down

0 comments on commit fc26dd1

Please sign in to comment.