Mkgmap - how to prevent routing on a way that has a barricade node

There is a way that contains a barricade as a node on this way. When I compile a garmin .img file, it is still routing on this way. Here is my batch file i use to complie:

java -ea -Xmx2048M -jar \MKGMAP\mkgmap-r4924\mkgmap-r4924\mkgmap.jar --family-id=666 --family-name=“Michigan” --product-id=3 --series-name=“MI_9-23-br-snow” --area-name=“My_maps” --x-mapset-name=CAT --style-file=\MKGMAP\BaseCamp-style\openmapchest --latin1 --index --x-split-name-index --bounds=\MKGMAP\bounds.zip --location-autofill=bounds,is_in,nearest --housenumbers --overview-mapname=MI-ov --overview-mapnumber=12390000 --remove-ovm-work-files --check-styles --min-size-polygon --route --drive-on=detect,right --report-roundabout-issues --remove-short-arcs --add-pois-to-areas --add-pois-to-lines --pois-to-areas-placement=“entrance=main;entrance=yes;building=entrance” --generate-sea=extend-sea-sectors,multipolygon,floodblocker,close-gaps=6000 --make-poi-index --process-destination --process-exits --tdbfile --poi-address --verbose -c template.args master_thin.txt --description=“MI_9-23-br-snow” --gmapsupp
pause

A suggestion was to add ‘-link-pois-to-ways’ to stop my .img file from allowing me to route across this barricade. Is this what I need?

Yes, that options split the way around the POI node and the small section of the way around the POI gets added all the tags of that POI.

So in your points file you need to have those barrier=* included.

So points file needs barrier=* [0x2c02 resolution 24]

?

Yes, something like this.

I had something like this in my cycling map:

( barrier=lift_gate | barrier=gate:lift | barrier=gate | highway=gate | barrier=footgate | highway=cattle_grid | barrier=cattle_grid ) & mkgmap:line2poi!=true & mkgmap:area2poi!=true [0x9009 level 0]
( barrier=chicane | barrier=cycle_barrier | barrier=kissing_gate ) & mkgmap:line2poi!=true & mkgmap:area2poi!=true [0x900a level 0]
barrier=* & mkgmap:line2poi!=true & mkgmap:area2poi!=true { set name='${barrier}' } [0x900c level 0]

Full style and options: RadReiseKarte/resources/style_rrk at master · aighes/RadReiseKarte · GitHub