Hi Minko,

I've just noticed that this solution does not yet work in combination with
option --process-destination.

Gerd

> Date: Mon, 7 Apr 2014 17:56:34 +0200
> From: ligfietser@online.nl
> To: mkgmap-dev@lists.mkgmap.org.uk
> Subject: Re: [mkgmap-dev] vehicles in restriction relations
>
> Thanks Gerd, seems working fine.
>
> I have set the following rules in my relation file (cycling map)
> Because it's a bicycle routing only, I dont use motorcar tags from OSM and have to apply all bicycle restrictions for "motorcar" activity:
>
> # remove restrictions for motorcar
> type=restriction:motorcar {delete type}
> type=restriction & restriction:motorcar=* {delete restriction:motorcar}
>
> #apply bicycle restrictions also for "motorcar"
> type=restriction & restriction:bicycle=* {set restriction:motorcar='${restriction:bicycle}'}
> type=restriction:bicycle {set type=restriction}
> type=restriction & except ~ '.*bicycle' {set except='${except};motorcar'}
>
> Not sure if mkgmap recognize all these rules, I can hardly find any restrictions for bicycles.
> The last rule with 'except bicycle' is working in "car mode" as intended.
>
>
>
> > I thought about this again and found this solution:
> > With r3172 you can add rules to the relations file to manipulate
> > restriction relations,
> > e.g. like this :
> > type=restriction & except ~ '.*bicycle' {set
> > except='${except};motorcar'}
> >
> > The meaning of the restriction relation is now evaluated after style
> > processing, so
> > you can change or add or remove tags.
> > If the restriction is not valid after that, it will be ignored.
> > You probably have to add a few more rules to handle the cases like
> > type=restriction:motorcar
> > or
> > restriction:motorcar=no_u_turn
> >
> > I hope that works for all cases?
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev@lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev