Skip to content

Commit d3fdc54

Browse files
author
Peter
committed
added test case for sidewalk=no, graphhopper#476
1 parent e5288a0 commit d3fdc54

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

core/files/map-sidewalk-no.osm.gz

96.1 KB
Binary file not shown.

core/src/test/java/com/graphhopper/routing/RoutingAlgorithmIT.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,22 @@ public void testMoscowTurnCosts()
225225
assertEquals(testCollector.toString(), 0, testCollector.errors.size());
226226
}
227227

228+
@Test
229+
public void testSidewalkNo()
230+
{
231+
List<OneRun> list = new ArrayList<OneRun>();
232+
// roundabout contains sidewalk=no which should be avoided
233+
list.add(new OneRun(57.154888, -2.101822, 57.153445, -2.099869, 329, 31));
234+
// longer path should go through tertiary, see discussion in #476
235+
list.add(new OneRun(57.154888, -2.101822, 57.147299, -2.096286, 1118, 68));
236+
237+
boolean testAlsoCH = false, is3D = false;
238+
runAlgo(testCollector, "files/map-sidewalk-no.osm.gz", "target/graph-sidewalkno",
239+
list, "foot", testAlsoCH, "foot", "fastest", is3D);
240+
241+
assertEquals(testCollector.toString(), 0, testCollector.errors.size());
242+
}
243+
228244
@Test
229245
public void testMonacoFastest()
230246
{

0 commit comments

Comments
 (0)