Skip to content

Commit

Permalink
fix: passing of time to routing algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
aoles committed Oct 23, 2024
1 parent d4911e2 commit f1f6e14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/main/java/com/graphhopper/routing/Router.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f1f6e14

Please sign in to comment.