Skip to content

Commit

Permalink
Merge pull request #766 from GIScience/feature#763-deprecate_fastest
Browse files Browse the repository at this point in the history
Deprecate fastest weighting
  • Loading branch information
takb authored Jul 15, 2020
2 parents f844c41 + 7e7ce8d commit c371fd9
Show file tree
Hide file tree
Showing 14 changed files with 130 additions and 150 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
- Improve recommended weighting for cycling and walking profiles ([#665](https://github.com/GIScience/openrouteservice/issues/665))
- Restructure AdditionWeighting
### Deprecated
- Use recommended weighting instead of fastest ([#763](https://github.com/GIScience/openrouteservice/issues/763))

## [6.1.1] - 2020-06-02
### Added
Expand Down
10 changes: 5 additions & 5 deletions openrouteservice-api-tests/conf/app.config.test
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
{
enabled: true,
threads: 1,
weightings: "fastest,shortest",
weightings: "recommended,shortest",
landmarks: 16
}
}
Expand Down Expand Up @@ -176,20 +176,20 @@
{
enabled: true,
threads: 1,
weightings: "fastest"
weightings: "recommended"
},
lm:
{
enabled: true,
threads: 1,
weightings: "fastest",
weightings: "recommended",
landmarks: 16
},
core:
{
enabled: true,
threads: 1,
weightings: "fastest,shortest",
weightings: "recommended,shortest",
landmarks: 32
}
}
Expand Down Expand Up @@ -244,7 +244,7 @@
{
enabled: true,
threads: 1,
weightings: "fastest,shortest",
weightings: "recommended,shortest",
landmarks: 32
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public ParamsTest() {
addParameter("coordinatesLong", "8.678613,49.411721|4.78906,53.071752");
addParameter("coordinatesShortThree", "8.678613,49.411721|8.687782,49.424597|8.691087,49.425009");
addParameter("extra_info", "surface|suitability|steepness");
addParameter("preference", "fastest");
addParameter("preference", "recommended");
addParameter("profile", "cycling-regular");
addParameter("carProfile", "driving-car");
}
Expand Down Expand Up @@ -656,9 +656,9 @@ public void expectRadiusesFormatError() {
public void expectNoNearestEdge() {
given()
.param("coordinates", "8.689585,49.399733|8.686495,49.40349")
.param("preference", "fastest")
.param("preference", getParameter("preference"))
.param("geometry", "true")
.param("profile", "cycling-regular")
.param("profile", getParameter("profile"))
.param("radiuses", "5|150")
.when()
.get(getEndPointName())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public ResultTest() {
addParameter("coordinatesShort", "8.678613,49.411721|8.687782,49.424597");
addParameter("coordinatesLong", "8.678613,49.411721|8.714733,49.393267|8.687782,49.424597");
addParameter("extra_info", "surface|suitability|steepness");
addParameter("preference", "fastest");
addParameter("preference", "recommended");
addParameter("bikeProfile", "cycling-regular");
addParameter("carProfile", "driving-car");

Expand Down Expand Up @@ -617,10 +617,10 @@ public void testSummary() {
.body("any { it.key == 'routes' }", is(true))
.body("routes[0].containsKey('segments')", is(true))
.body("routes[0].segments.size()", is(2))
.body("routes[0].summary.distance", is(11137.6f))
.body("routes[0].summary.duration", is(2522.6f))
.body("routes[0].summary.ascent", is(342.2f))
.body("routes[0].summary.descent", is(338.8f))
.body("routes[0].summary.distance", is(13079))
.body("routes[0].summary.duration", is(2737))
.body("routes[0].summary.ascent", is(351))
.body("routes[0].summary.descent", is(347.6f))
.statusCode(200);
}

Expand All @@ -639,10 +639,10 @@ public void testSegmentDistances() {
.body("any { it.key == 'routes' }", is(true))
.body("routes[0].containsKey('segments')", is(true))
.body("routes[0].segments.size()", is(2))
.body("routes[0].segments[0].distance", is(5544.1f))
.body("routes[0].segments[0].duration", is(1260.6f))
.body("routes[0].segments[1].distance", is(5593.5f))
.body("routes[0].segments[1].duration", is(1262))
.body("routes[0].segments[0].distance", is(6696.6f))
.body("routes[0].segments[0].duration", is(1398.4f))
.body("routes[0].segments[1].distance", is(6382.4f))
.body("routes[0].segments[1].duration", is(1338.6f))
.statusCode(200);
}

Expand All @@ -663,7 +663,7 @@ public void testEncodedPolyline() {
.body("any { it.key == 'routes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
.body("routes[0].way_points", hasItems(0, 332, 624))
.statusCode(200);
}

Expand All @@ -698,7 +698,7 @@ public void testBbox() {
.then()
.assertThat()
.body("any { it.key == 'routes' }", is(true))
.body("routes[0].bbox", hasItems(8.678615f, 49.393272f, 8.714833f, 49.424603f))
.body("routes[0].bbox", hasItems(8.678615f, 49.388405f, 8.719662f, 49.424603f))
.statusCode(200);
}

Expand All @@ -716,7 +716,7 @@ public void testManeuver() {
.then()
.assertThat()
.body("any { it.key == 'routes' }", is(true))
.body("routes[0].bbox", hasItems(8.678615f, 49.393272f, 8.714833f, 49.424603f))
.body("routes[0].bbox", hasItems(8.678615f, 49.388405f, 8.719662f, 49.424603f))
.body("routes[0].segments[0].steps[0].maneuver.bearing_before", is(0))
//.body("routes[0].segments[0].steps[0].maneuver.bearing_after", is(260))
.body("routes[0].segments[0].steps[0].maneuver.bearing_after", is(175))
Expand Down Expand Up @@ -767,10 +767,10 @@ public void testExtrasDetails() {
.assertThat()
.body("any { it.key == 'routes' }", is(true))
.body("routes[0].containsKey('extras')", is(true))
.body("routes[0].extras.surface.values.size()", is(44))
.body("routes[0].extras.surface.values[26][1]", is(281))
.body("routes[0].extras.suitability.values[29][0]", is(429))
.body("routes[0].extras.steepness.values[11][1]", is(265))
.body("routes[0].extras.surface.values.size()", is(28))
.body("routes[0].extras.surface.values[18][1]", is(342))
.body("routes[0].extras.suitability.values[18][0]", is(521))
.body("routes[0].extras.steepness.values[10][1]", is(326))

.statusCode(200);

Expand Down Expand Up @@ -799,7 +799,7 @@ public void testTrailDifficultyExtraDetails() {
Response response = given()
.param("coordinates", "8.763442,49.388882|8.762927,49.397541")
.param("instructions", "true")
.param("preference", "fastest")
.param("preference", getParameter("preference"))
.param("profile", "cycling-regular")
.param("extra_info", "suitability|traildifficulty")
.when().log().ifValidationFails()
Expand All @@ -824,7 +824,7 @@ public void testTrailDifficultyExtraDetails() {
response = given()
.param("coordinates", "8.724174,49.390223|8.716536,49.399622")
.param("instructions", "true")
.param("preference", "fastest")
.param("preference", getParameter("preference"))
.param("profile", "foot-hiking")
.param("extra_info", "traildifficulty")
.when().log().ifValidationFails()
Expand Down Expand Up @@ -856,7 +856,7 @@ public void testTollwaysExtraDetails() {
Response response = given()
.param("coordinates", "8.676281,49.414715|8.6483,49.413291")
.param("instructions", "true")
.param("preference", "fastest")
.param("preference", getParameter("preference"))
.param("profile", "driving-car")
.param("extra_info", "suitability|tollways")
.when().log().ifValidationFails()
Expand All @@ -877,7 +877,7 @@ public void testTollwaysExtraDetails() {
response = given()
.param("coordinates", "8.676281,49.414715|8.6483,49.413291")
.param("instructions", "true")
.param("preference", "fastest")
.param("preference", getParameter("preference"))
.param("profile", "driving-hgv")
.param("extra_info", "suitability|tollways")
.when().log().ifValidationFails()
Expand All @@ -904,7 +904,7 @@ public void testTollwaysExtraDetails() {
response = given()
.param("coordinates", "8.676281,49.414715|8.6483,49.413291")
.param("instructions", "true")
.param("preference", "fastest")
.param("preference", getParameter("preference"))
.param("profile", "driving-hgv")
.param("continue_straight", "false")
.param("options", "{\"profile_params\":{\"width\":\"2\",\"height\":\"2\",\"weight\":\"14\"},\"vehicle_type\":\"hgv\"}")
Expand Down Expand Up @@ -953,7 +953,7 @@ public void testOptimizedAndTurnRestrictions() {
public void testNoBearings() {
given()
.param("coordinates", "8.688694,49.399374|8.686495,49.40349")
.param("preference", "fastest")
.param("preference", getParameter("preference"))
.param("geometry", "true")
.param("profile", "cycling-regular")
.when().log().ifValidationFails()
Expand All @@ -970,7 +970,7 @@ public void testNoBearings() {
public void testBearingsForStartAndEndPoints() {
given()
.param("coordinates", "8.688694,49.399374|8.686495,49.40349")
.param("preference", "fastest")
.param("preference", getParameter("preference"))
.param("geometry", "true")
.param("profile", "cycling-road")
.param("bearings", "25,30|90,20")
Expand All @@ -987,7 +987,7 @@ public void testBearingsForStartAndEndPoints() {
public void testBearingsExceptLastPoint() {
given()
.param("coordinates", "8.688694,49.399374|8.686495,49.40349")
.param("preference", "fastest")
.param("preference", getParameter("preference"))
.param("geometry", "true")
.param("profile", "cycling-road")
.param("bearings", "25,30")
Expand All @@ -1004,7 +1004,7 @@ public void testBearingsExceptLastPoint() {
public void testBearingsSkipwaypoint() {
given()
.param("coordinates", "8.688694,49.399374|8.686495,49.40349")
.param("preference", "fastest")
.param("preference", getParameter("preference"))
.param("geometry", "true")
.param("profile", "cycling-regular")
.param("bearings", "|90,20")
Expand Down Expand Up @@ -1032,10 +1032,8 @@ public void testSteps() {
.body("any { it.key == 'routes' }", is(true))
.body("routes[0].segments[0].containsKey('steps')", is(true))
.body("routes[0].segments[1].containsKey('steps')", is(true))
//.body("routes[0].segments[0].steps.size()", is(55))
.body("routes[0].segments[0].steps.size()", is(39))
//.body("routes[0].segments[1].steps.size()", is(28))
.body("routes[0].segments[1].steps.size()", is(25))
.body("routes[0].segments[0].steps.size()", is(34))
.body("routes[0].segments[1].steps.size()", is(17))
.statusCode(200);
}

Expand All @@ -1054,8 +1052,8 @@ public void testStepsDetails() {
.body("any { it.key == 'routes' }", is(true))
.body("routes[0].segments[0].containsKey('steps')", is(true))
.body("routes[0].segments[1].containsKey('steps')", is(true))
.body("routes[0].segments[0].steps.size()", is(39))
.body("routes[0].segments[1].steps.size()", is(25))
.body("routes[0].segments[0].steps.size()", is(34))
.body("routes[0].segments[1].steps.size()", is(17))
.body("routes[0].segments[0].steps[3].distance", is(337.3f))
.body("routes[0].segments[0].steps[3].duration", is(67.5f))
.body("routes[0].segments[0].steps[3].type", is(0))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public ParamsTest() {
extraInfo.put("steepness");
addParameter("extra_info", extraInfo);

addParameter("preference", "fastest");
addParameter("preference", "recommended");
addParameter("profile", "cycling-regular");
addParameter("carProfile", "driving-car");
addParameter("footProfile", "foot-walking");
Expand Down Expand Up @@ -946,7 +946,7 @@ public void expectNoNearestEdge() {
coordinates.put(coord2);

body.put("coordinates", coordinates);
body.put("preference", "fastest");
body.put("preference", getParameter("preference"));

JSONArray radii = new JSONArray();
radii.put(50);
Expand All @@ -958,7 +958,7 @@ public void expectNoNearestEdge() {
given()
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.pathParam("profile", "cycling-regular")
.pathParam("profile", getParameter("profile"))
.body(body.toString())
.when()
.post(getEndPointPath()+"/{profile}/json")
Expand Down Expand Up @@ -1734,7 +1734,7 @@ public void testMaximumSpeedLowerBound() {
given()
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.pathParam("profile", "driving-car")
.pathParam("profile", getParameter("carProfile"))
.body(body.toString())
.when()
.post(getEndPointPath() + "/{profile}")
Expand All @@ -1756,7 +1756,7 @@ public void testMaximumSpeedUnsupportedProfile() {
given()
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.pathParam("profile", "cycling-regular")
.pathParam("profile", getParameter("profile"))
.body(body.toString())
.when()
.post(getEndPointPath() + "/{profile}")
Expand Down
Loading

0 comments on commit c371fd9

Please sign in to comment.