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