Skip to content

Commit

Permalink
Merge branch 'feature-#377-alternative-routes' of https://github.com/…
Browse files Browse the repository at this point in the history
…GIScience/openrouteservice into feature-#377-alternative-routes
  • Loading branch information
takb committed Feb 5, 2019
2 parents 6465259 + 909d33c commit 6088d01
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 31 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Added support for ISO 3166-1 Alpha-2 / Alpha-3 codes for routing directions option avoid_countries (Issue #195)
- Added check on matrix service to make sure that the requested locations are within the bounding area of the graph (Issue #408)
- Added support for GH alternative_route algorithm (Issue #377)
- Added check on matrix service to make sure that the requested locations are within the bounding area of the graph (Issue #408)
### Fixed
- Fixed `geometry_simplify` parameter, which had no effect before. `geometry_simplify` is incompatible with `extra_info` (#381)
### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1479,33 +1479,6 @@ public void testAccessRestrictionsWarnings() {
.statusCode(200);
}

@Test
public void testSimplifyHasLessWayPoints() {

given()
.param("coordinates", getParameter("coordinatesShort"))
.param("profile", "driving-car")
.param("format", "geojson")
.when()
.get(getEndPointName())
.then()
.assertThat()
.body("features[0].geometry.coordinates.size()", is(75))
.statusCode(200);

given()
.param("coordinates", getParameter("coordinatesShort"))
.param("profile", "driving-car")
.param("format", "geojson")
.param("geometry_simplify", "true")
.when()
.get(getEndPointName())
.then()
.assertThat()
.body("features[0].geometry.coordinates.size()", is(34))
.statusCode(200);
}

@Test
public void testAlternativeRoutes() {
given()
Expand Down
3 changes: 0 additions & 3 deletions openrouteservice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@
<url>http://download.java.net/maven/2</url>
</repository>
<repository>
<<<<<<< HEAD
=======
<id>osgeo</id>
<name>Open Source Geospatial Foundation Repository</name>
<url>http://download.osgeo.org/webdav/geotools/</url>
Expand All @@ -188,7 +186,6 @@
<url>http://repo.opengeo.org</url>
</repository>
<repository>
>>>>>>> [feat] enable geometry_simplify API parameter
<id>bintray-nitram509-jbrotli</id>
<name>bintray</name>
<url>http://dl.bintray.com/nitram509/jbrotli</url>
Expand Down

0 comments on commit 6088d01

Please sign in to comment.