Skip to content

Commit

Permalink
test: use heidelberg file processed through osm-transform
Browse files Browse the repository at this point in the history
  • Loading branch information
aoles committed Apr 12, 2024
1 parent fd89d42 commit 16087ed
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2018,7 +2018,7 @@ void testWheelchairWidthRestriction() {
.then()
.assertThat()
.body("any { it.key == 'routes' }", is(true))
.body("routes[0].summary.distance", is(158.7f))
.body("routes[0].summary.distance", is(158.8f))
.body("routes[0].summary.duration", is(114.3f))
.statusCode(200);
}
Expand Down
2 changes: 1 addition & 1 deletion ors-api/src/test/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ors:
maximum_intervals: 10

engine:
source_file: ./src/test/files/heidelberg.osm.gz
source_file: ./src/test/files/heidelberg.ors.pbf
graphs_root_path: graphs-apitests
elevation:
cache_path: ./src/test/files/elevation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ public String getEngName(String name) {
}

public String getName(short id) {
return names.get(id);
return names.getOrDefault(id, INTERNATIONAL_NAME);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,8 @@ public void processPathEdge(EdgeIteratorState edge, PointList geom) {
coordinate.y = geom.getLat(0);
CountryBordersPolygon[] countries = countryBordersReader.getCountry(coordinate);
if (countries.length >= 1) {
country1 = Short.parseShort(countryBordersReader.getId(countryBordersReader.getCountry(coordinate)[0].getName()));
short country0 = Short.parseShort(countryBordersReader.getId(countryBordersReader.getCountry(coordinate)[0].getName()));
country1 = country0;
}
}
if (countryTraversalInfoBuilder != null && country1 != 0) {
Expand Down

0 comments on commit 16087ed

Please sign in to comment.