Skip to content

Commit 40f5689

Browse files
committed
fix: passing of time to routing algorithms
1 parent 7237ea0 commit 40f5689

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

core/src/main/java/com/graphhopper/routing/Router.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,7 @@ private static boolean getForceCurbsides(PMap hints) {
405405

406406
// ORS GH-MOD START
407407
private static long getTime(PMap hints) {
408-
Instant time = hints.has("departure") ? hints.getObject("departure", null) : hints.getObject("arrival", null);
409-
return (time == null) ? -1 : time.toEpochMilli();
408+
return hints.getLong("time", -1);
410409
}
411410

412411
// way to inject additional edgeFilters to router

0 commit comments

Comments
 (0)