SOLVED:style-file "lines": help needed @ oneway motorcycle restriction

Hello,
this is my first posting outside the german forum.

I need a little help with the routing in my lines-file (style).

This is the situation: Permalink
The tunnel on the primary-highway B7 has a restriction for all motorcycles from north to south (backward), in case of a railway-line along the lane.
The other direction from south to north (forward) is free for motorcycles. I’ve no interest for other vehicles, only for motorcycles and mopeds.
It’s tagged this: motorcycle:backward=no

How do i have to decode this in my style that routing works correct way?
highway=* & motorcycle:backward=no {add oneway=yes}
or
highway=* & motorcycle:backward=no {set motorcycle=no; set moped=no; }

This works, but in both directions. And this is not what i want!
highway=* & motorcycle=no {set motorcycle=no; set motorcar=no; set moped=no; }

Thank you. Best Regards.
Scotti

Update: Correct Permalink

Good morning,
yesterday i tried something more with my Garmin zûmo550.

In Case of Vehicle-Profile Motorcar/Motorcycle is not seperated in the Unit, i set Motorcar also to “no”-Value.

motorcycle:backward=no | motorcycle:forward=no 		{set motorcycle:oneway=yes; }
highway=* & motorcycle=no & motorcycle:oneway!=yes	{set motorcycle=no; set motorcar=no; set moped=no; }
motorcycle:backward=no					{add oneway=yes; set motorcycle:forward=yes; }
motorcycle:forward=no					{add oneway=-1; set motorcycle:backward=yes; }

This Code works correct with Vehicle-Profile Truck, Bus, Emergency,
but not with Car/Motorcyle.

I guess, this is why i set:

highway=* & motorcycle=no & motorcycle:oneway!=yes	{set motorcycle=no; set motorcar=no; set moped=no; }

But this Line i need for Motorcycle-Restrictions in both Directions!

Please help me to change my Code, so it will work with both, forbidden in oneway and totally forbidden.

Thank you very much and have a great Day.
Scotti

Hello,
i’ve found it out by myself with a long period of try & error.

This works:

motorcycle:backward=no				{add oneway=yes; }
motorcycle:forward=no				{add oneway=-1; }
motorcycle=no					{delete motorcycle; set motorcycle:backward=no; set motorcycle:forward=no; }
motorcycle:backward=no & motorcycle:forward=no	{set motorcycle=no; set motorcar=no; set moped=no; }

Nice Weekend.
Scotti

I think
highway=* & motorcycle:backward=no {set oneway=yes}
highway=* & motorcycle:forward=no {set oneway=-1}
should work.

Chris

Why should i change this from “add” to “set”? It works with “add”! Never change a running thing. Regards. Scotti

I dont understand this complicated action:

motorcycle=no {delete motorcycle; set motorcycle:backward=no; set motorcycle:forward=no; }
motorcycle:backward=no & motorcycle:forward=no {set motorcycle=no; set motorcar=no; set moped=no; }

that is the same as this action:

motorcycle=no {set motorcar=no; set moped=no; } :confused:

Hi
As I understood, your Code is only for both Directions = no.
But i need a Code which works oneway backward, forward and both.
And my Code works! Maybe it’s going better. But now i don’t needed better Code yet.
Nice Weekend. Regards. Scotti