Custom Profile for Seasonal Access


Is it possible to write a custom profile clause that enables access to seasonally closed roads, regardless of the time of year? I couldn’t find any way to do this in the custom profile documentation. Or is there another way of enabling this? On our site routes are planned in the winter that might take place in the summer.

Thanks in advance for any advice on this.

I don’t think so at the moment. See this issue Allow ignoring seasonal roads · Issue #2477 · graphhopper/graphhopper · GitHub

Thanks. I thought that might be the case. I wondering, is there any way to trick it by somehow passing it a summer date? How does it determine the date - is this from the computer clock or can a date be passed as a parameter with the routing request? Just trying to think outside the box!

It is determined at import time where you can pass any date.

Thanks. Sorry, I’m not clear where we add the date. When we build the graph we use something like this:

java -Xmx120000m -Xms120000m -XX:+UseG1GC -Ddw.graphhopper.datareader.file=osm/planet-latest.osm.pbf -Ddw.graphhopper.graph.location=graphhopper/graph/planet-latest.osm-gh -jar graphhopper/graphhopper-web-6.2.jar server graphhopper/config/v6/config-v1.2.yml

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.