I have about 200 lat/lon/radius specified in block_area. However, routing does not always seem to respect the values in block_area. When there are a lot of blocked points, routing still passes through the radius of those points. Any idea why?
The green path shows a clear example: https://image.ibb.co/c8ihaT/Screen_Shot_2018_06_22_at_20_48_06.png
Here’s the relevant code snippet using the Web API:
var ghRoutingAvoid = new GraphHopper.Routing({ key: "API_KEY", vehicle: "foot", elevation: false, instructions: false, ch: {disable: true}, block_area: "LONG LIST OF LAT,LON,RADIUS" }); setupRoutingAPIAvoid(map, ghRoutingAvoid); function setupRoutingAPIAvoid(map, ghRouting) { map.setView([52.093421, 5.073712], 12); ghRouting.addPoint(new GHInput(52.08986,5.1113)); ghRouting.addPoint(new GHInput(52.09086,5.1193099)); ghRouting.doRequest() .then(function(json) { var path = json.paths[0]; routingLayerAvoid.addData({ "type": "Feature", "geometry": path.points }); }).catch(function(err) { console.log(err); }); var routingLayerAvoid = L.geoJson().addTo(map); routingLayerAvoid.options = { style: {color: "#00cc33", "weight": 5, "opacity": 0.6} }; }