Yes, correct… it is due to motor_vehicle=private
.
I tested by removing private
from restrictedValues:
package com.graphhopper.routing.util;
...snipped...
public class CarFlagEncoder extends AbstractFlagEncoder {
...snipped...
public CarFlagEncoder(PMap properties) {
super(properties.getString("name", "car"),
properties.getInt("speed_bits", 5),
properties.getDouble("speed_factor", 5),
properties.getBool("speed_two_directions", false),
properties.getInt("max_turn_costs", properties.getBool("turn_costs", false) ? 1 : 0));
...snipped...
restrictedValues.add("emergency");
// I remark the line below
// restrictedValues.add("private");
...snipped...
and GH routed successfully.
Being a newbie in this field, I can’t guess of the implication of remarking this line though. But I think it’s safe enough for my use case (package delivery), as usually the drivers can find ways to get into private streets at their destinations.
Although, maybe GH will route him through a lot of private streets in between…
Is my thought process correct here?