Skip to content

Commit

Permalink
Merge pull request #98 from GIScience/fix/time_parameter_for_td_routing
Browse files Browse the repository at this point in the history
fix: passing of time to routing algorithms
  • Loading branch information
aoles authored Oct 25, 2024
2 parents 7237ea0 + 40f5689 commit 28b61e7
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 28b61e7

Please sign in to comment.