Hi,
I’m using the graphhopper-js-api-client for a university project and tried to define areas which should be avoided. I did this with the parameter “block_area”, but graphhopper doesn’t avoid the defined areas. My code looks like this:
const ghRouting = new GraphHopperRouting(
{
key: GRAPHHOPPER_KEY,
vehicle: ‘bike’,
elevation: false,
weighting:“fastest”,
ch: {disabled: true},
block_area: ‘52.517064, 13.390688, 300’
});
locations.forEach((location) => {
ghRouting.addPoint(new GHInput(location));
});
I tried this with plenty of areas, so I think it hasn’t to do with this issue: How to make sure block_area is always respected?
I hope you can help and I wish you happy holidays
Simon