Hi there, I need to block certain street segments for navigation. So far we used block_area in a POST request with the list of points (center of the segment) with a radius of 10. As block_area is now deprecated, we transition to customModel. There we use
Map<String, JsonFeature> areas = new HashMap<>(); areas.put("avoid", new JsonFeature("avoid", "Feature", null, multiPolygon, new HashMap<>())); customModel.setAreas(areas);
customModel.addToPriority(Statement.If("in_avoid", Op.MULTIPLY, 0));
As the customModel only works with polygons, we calculate a square around the center point: (blue: segment to block)
Somehow it doesn’t affect the routing. Any idea as why?