From 3f9b3bdc7cbdd8286f6b6877f3ed8ac9e9897a14 Mon Sep 17 00:00:00 2001 From: Peter Date: Tue, 9 Apr 2024 14:14:12 +0200 Subject: [PATCH] include foot.json custom model in tests --- .../graphhopper/routing/RoutingAlgorithmWithOSMTest.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/src/test/java/com/graphhopper/routing/RoutingAlgorithmWithOSMTest.java b/core/src/test/java/com/graphhopper/routing/RoutingAlgorithmWithOSMTest.java index bd93447c2e7..5e62a603eed 100644 --- a/core/src/test/java/com/graphhopper/routing/RoutingAlgorithmWithOSMTest.java +++ b/core/src/test/java/com/graphhopper/routing/RoutingAlgorithmWithOSMTest.java @@ -253,8 +253,8 @@ public void testMonacoMixed() { } @Test - public void testMonacoFoot() { - Profile profile = TestProfiles.accessSpeedAndPriority("foot"); + public void testRealFootCustomModelInMonaco() { + Profile profile = new Profile("foot").setCustomModel(getCustomModel("foot.json")); profile.getCustomModel().setDistanceInfluence(10_000d); GraphHopper hopper = createHopper(MONACO, profile); hopper.importOrLoad(); @@ -305,13 +305,12 @@ public void testNorthBayreuthHikeFastestAnd3D() { // prefer hiking route 'Teufelsloch Unterwaiz' and 'Rotmain-Wanderweg' queries.add(new Query(49.974972, 11.515657, 49.991022, 11.512299, 2365, 67)); // prefer hiking route 'Markgrafenweg Bayreuth Kulmbach' but avoid tertiary highway from Pechgraben - queries.add(new Query(49.990967, 11.545258, 50.023182, 11.555386, 5636, 97)); + queries.add(new Query(49.990967, 11.545258, 50.023182, 11.555386, 5690, 118)); GraphHopper hopper = createHopper(BAYREUTH, new Profile("hike").setCustomModel(getCustomModel("hike.json"))); hopper.setElevationProvider(new SRTMProvider(DIR)); hopper.importOrLoad(); - // TODO NOW what is wrong? expected 2365 vs actual 2334 - // checkQueries(hopper, queries); + checkQueries(hopper, queries); } @Test