From 40f5689b0e05942c99e8724cc3fb137dc97ae67f Mon Sep 17 00:00:00 2001 From: aoles Date: Wed, 23 Oct 2024 22:15:51 +0200 Subject: [PATCH] fix: passing of time to routing algorithms --- core/src/main/java/com/graphhopper/routing/Router.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/main/java/com/graphhopper/routing/Router.java b/core/src/main/java/com/graphhopper/routing/Router.java index 06db9d9c78d..610e1a2da91 100644 --- a/core/src/main/java/com/graphhopper/routing/Router.java +++ b/core/src/main/java/com/graphhopper/routing/Router.java @@ -405,8 +405,7 @@ private static boolean getForceCurbsides(PMap hints) { // ORS GH-MOD START private static long getTime(PMap hints) { - Instant time = hints.has("departure") ? hints.getObject("departure", null) : hints.getObject("arrival", null); - return (time == null) ? -1 : time.toEpochMilli(); + return hints.getLong("time", -1); } // way to inject additional edgeFilters to router