logo separator

[mkgmap-dev] PT rules in relations file

From Bernd Weigelt weigelt.bernd at web.de on Wed Jan 7 17:11:29 GMT 2015

Hi

i'm playing around with the PT rules in relations, as example this node [1].

The node belongs to two route relations (RE8 and RB27) and one track relation 
(2324)

When i enable the rules in relations i got the labels

Unkel (Re8,re8,rb27,rb27)

my wanted result is to get only one entry per relations, btw apply_once didn't 
help

this is my code


# Public transportation routes.

type=route
  & (route=bus|
      route=trolleybus|
      route=ferry|
      route=subway|
      route=train|
      route=tram)
  & (ref=* |
      name=*)
    {
      add ref='${name}';
      apply {
        set route_ref='$(route_ref),${ref}' | '${ref}';
        set mkgmap:relref='${ref}';
        apply role=passengers {
        set route_ref='$(route_ref),${mkgmap:relref}' | '${mkgmap:relref}';
            }
      delete mkgmap:relref;
            }
    }

How can get this result? And where is my error?

Bernd


[1] http://www.openstreetmap.org/way/58522211


More information about the mkgmap-dev mailing list