How does Graphopper treat gates

Hi

I hope someone can offer advice, many of the areas that I route to have gates which in OSM have no value for access type set (see below). But in reality many of these gates are locked. Is there a way of forcing the routing algorithm to gives these roadways very low priority ?

If i understand your question correctly, you can create a Custom Profile like here:

For example, if you have a self hosted server, you will need to edit the config.yml file, look for and change this line: graph.encoded_values: {add what you need}

I want to avoid roads that are dirt, so include “surface” in the above list, rebuild your graph-cache directory then you can create a custom model with something like this:
{
“distance_influence”: 15,
“priority”: [
{
“if”: “surface == DIRT”,
“multiply_by”: “0.0”
}
]
}
In your case, you may want to allow, but you can slow it down with .8 or something like that. In this example i want to not allow that route on dirt.

Good luck