Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field “time_band” (class com.graphhopper.util.CustomModel), not marked as ignorable (5 known properties: “distance_influence”, “heading_penalty”, “areas”, “speed”, “priority”])
Do you have an example of how i can use my new “time_band” directly in the priority/speed array, encoded value?
My end goal is that i can define the time_band in the profile, and at the Weighting level have this data to influence which weighting value i use.
To note, there is no road data which is called “time_band” its a made up name just for the sake of identification and doesn’t related to any road segments, etc.
Take a look at DefaultWeightingFactory.java where the CustomWeighting object is created. At this point you will have access to the profile (and hints). But you will need to pass it on to your weighting class.
Yes, this way it will be available in the profile.