<div class=WordSection1><p class=MsoNormal>Hi Gerd,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>great idea and it works good for my puposes. In principle I try to do the following:</p><p class=MsoNormal><o:p> </o:p></p><ul style='margin-top:0cm' type=disc><li class=MsoListParagraph style='margin-left:0cm;mso-list:l0 level1 lfo1'>Use Option –add-pois-to-lines</li><li class=MsoListParagraph style='margin-left:0cm;mso-list:l0 level1 lfo1'>Add a tag route_mtb_info_point to the first member of a route</li><li class=MsoListParagraph style='margin-left:0cm;mso-list:l0 level1 lfo1'>Add all the relevant relation Information</li><li class=MsoListParagraph style='margin-left:0cm;mso-list:l0 level1 lfo1'>Add the „direction“ (role=backward/Forward) of the first member</li><li class=MsoListParagraph style='margin-left:0cm;mso-list:l0 level1 lfo1'>Add an element in the Points-file which is shown at the start or the end (or in the middle if there is no direction) in relation of the direction of the way</li></ul><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I can search for POI like „MTB-Info…“ and get all the MTB-Routes around my Position. The POI are at the start (or nearby) of the route (if the mebers are ordered) or somewhere on the route – as expected. Sometimes there are two POI for one route</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> I have the following in my style:</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>#add tag for direction to each member, could be both if way is twice or more with diff Direction in the route.</p><p class=MsoNormal>route=mtb{apply</p><p class=MsoNormal>                role ='backward'{set mtb_role_backward="yes";}</p><p class=MsoNormal>}</p><p class=MsoNormal>route=mtb {apply</p><p class=MsoNormal>                role ='forward'{ set mtb_role_forward="yes";}</p><p class=MsoNormal>}</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>#save data of first member of the route, (could be more than one route but not relevant in this example)</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>route=mtb{apply_first {</p><p class=MsoNormal>                                                               set route_mtb_info_point="yes";</p><p class=MsoNormal>                                                               set route_mtb_info_point_forward="$(mtb_role_forward)";</p><p class=MsoNormal>                                                               set route_mtb_info_point_backward="$(mtb_role_backward)";</p><p class=MsoNormal>                                                               set route_mtb_name="$(route_mtb_name)-${name}"|"${name}";</p><p class=MsoNormal>                                                               set route_mtb_ref="$(route_mtb_ref)-${ref}"|"${ref}";</p><p class=MsoNormal>                                                               set route_mtb_info_actual ="HM:k.A.,KM:k.A.";</p><p class=MsoNormal>                                                               set route_mtb_info_actual="HM:${ascent},KM:${distance}" | "HM:${fee},KM:${distance}" | "KM:${distance}" | "HM:${ascent}";</p><p class=MsoNormal>                                                               set route_mtb_info="$(route_mtb_info)-$(route_mtb_info_actual)"|"$(route_mtb_info_actual)";</p><p class=MsoNormal>                                                               echotags"rel apply_first"</p><p class=MsoNormal>                                               }</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I expected that for a way which is only member of one relation the values of</p><p class=MsoNormal>route_mtb_info_point_forward and route_mtb_info_point_backward</p><p class=MsoNormal>could never be „yes“ at the same time for both, because only the first member of the relation is under investigation. But it seems that if a way is more than once a member in a relation, the data of both positions are stored (the way is the first (backward) and the last (Forward) member of the relation).</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Way 337595135 [highway=track, motor_vehicle=forestry, mtb_role_backward=yes, mtb_role_forward=yes, route_bicycle=yes, route_hiking=yes, route_mtb_info=HM:754,KM:30, route_mtb_info_actual=HM:754,KM:30, route_mtb_info_point=yes, route_mtb_info_point_backward=yes, route_mtb_info_point_forward=yes, route_mtb_name=MTB-Strecke Breuberg 1, route_mtb_ref=Bb1, route_name=Odenwaldklub HW 27, Seligenstadt - Waldbrunn - Bad Rappenau-2-Burgen-Radweg-Rundwanderweg Breuberg Burg Breuberg 3: Scheuerberg-Weg-Rundwanderweg Breuberg Burg Breuberg 2: Schanzen-Weg-Rundwanderweg Breuberg Burg Breuberg 2: Schanzen-Weg-Südhessen-Route 22, route_ref=HW 27-2BR-3-2-2-22, route_symbol=rotes X auf weißem Grund, tracktype=grade2] rel apply_first</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The Points – file includes the following:</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>route_mtb_info_point="yes" & route_mtb_info_point_forward="yes" & mkgmap:line2poitype=start  {set mkgmap:label:1 = "MTB-Info: ${route_mtb_ref} ${route_mtb_name} ${route_mtb_info}"}[0x1010a resolution 20-24 ]</p><p class=MsoNormal>route_mtb_info_point="yes" & route_mtb_info_point_backward="yes" & mkgmap:line2poitype=end  {set mkgmap:label:1 = "MTB-Info: ${route_mtb_ref} ${route_mtb_name} ${route_mtb_info}"}[0x1010a resolution 20-24 ]</p><p class=MsoNormal>route_mtb_info_point="yes" & mkgmap:line2poitype=mid & route_mtb_info_point_backward!=* & route_mtb_info_point_forward!=* {set mkgmap:label:1 = "MTB-Info: ${route_mtb_ref} ${route_mtb_name} ${route_mtb_info}"}[0x1010a resolution 20-24 ]</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This results in 2 POIs for this route. </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><img width=661 height=454 style='width:6.8854in;height:4.7291in' id="Grafik_x0020_3" src="cid:image003.png@01D48294.0978A820"></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Gesendet von <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Mail</a> für Windows 10</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b>Von: </b><a href="mailto:gpetermann_muenchen@hotmail.com">Gerd Petermann</a><br><b>Gesendet: </b>Donnerstag, 22. November 2018 11:17<br><b>An: </b><a href="mailto:popej@poczta.onet.pl">Andrzej Popowski</a>; <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">Development list for mkgmap</a><br><b>Betreff: </b>Re: [mkgmap-dev] Add a POI to the start of a relation (route:mtb)</p></div><p class=MsoNormal><o:p> </o:p></p></div>Hi Andrzej,<br><br>there is a comment in style file relations :<br>  # apply way { add name='${name}' }<br>but it seems this syntax was never implemented. I can try to add that, too.<br><br>Gerd<br><br>________________________________________<br>Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Andrzej Popowski <popej@poczta.onet.pl><br>Gesendet: Donnerstag, 22. November 2018 10:57<br>An: mkgmap-dev@lists.mkgmap.org.uk<br>Betreff: Re: [mkgmap-dev] Add a POI to the start of a relation (route:mtb)<br><br>Hi Gerd,<br><br>I think it would be better to have something like apply_first_way. See<br>for example these relations, where first member is a point:<br>https://www.openstreetmap.org/relation/1699620<br>https://www.openstreetmap.org/relation/254686<br><br>--<br>Best regards,<br>Andrzej<br>_______________________________________________<br>mkgmap-dev mailing list<br>mkgmap-dev@lists.mkgmap.org.uk<br>http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br>_______________________________________________<br>mkgmap-dev mailing list<br>mkgmap-dev@lists.mkgmap.org.uk<br>http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br>