
Attached is a patch that allows you to build routable ways from relations. You use it by adding a [ ... ] section in your relations style file. For example: type=route & route=bicycle & network=tcn { name '${ref|subst: |highway-symbol:box} ${name}' | '${ref|subst: |highway-symbol:box}' | '${name}'; apply { set routable_way_generated=yes; set cycleroute_from_relation=yes; set access=yes; set motorcar=yes; set motorcycle=yes; set bicycle=yes; } } [ 0x02 road_class=2 road_speed=1 level 3 ] All the ways that belong to that relation are converted into the given type. This is done before and in addition the processing using the lines style file. As you can see you can modify the tags of the ways that belong to that relation to avoid generating ways twice by using an appropriate condition in the lines style file. Regards Thilo Am 26.03.2010 um 23:55 schrieb Chris-Hein Lunkhusen:
Marko Mäkelä schrieb:
So, I choosed the simplest solution and mapped the line as route=shuttle_train.
You could set this attribute in the relations file too.
But in this case the problem of the connections to the highway network on the railway-crossings remains.
If the route is too complicated(!?) MS switches to direct-line routing. :-(
Sorry, I have no idea about that. The Edge 705 often cheats in bicycle navigation by jumping to car road after a few km, but I haven't seen it switch to direct-line routing yet. But you have a much higher way density I guess.
I played a little bit with the lines-style-file, changed the road-class from 0 to 1 for residential, unclassified and service and now the routing is fine.
So maybe roadclass 0 is not good for routing....
Chris
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev