<div class=WordSection1><p class=MsoNormal>Hi Gerd,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>type=route & route=mtb</p><p class=MsoNormal>{ apply mem_pos() = [first,x,last]</p><p class=MsoNormal>  {</p><p class=MsoNormal>    set ...</p><p class=MsoNormal>  }</p><p class=MsoNormal>} </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Could do the job.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Andreas<o:p></o:p></p><p class=MsoNormal> </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><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>Mittwoch, 21. November 2018 11:32<br><b>An: </b><a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</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 Andreas,<br><br>I still don't see where to handle this in mkgmap. A way can be the member of<br>several route relations.<br>It might be the start of one and the end of two others, or vice versa. When<br>the route describes a closed ring it would be start and end. <br>I don't want to handle those cases in the java code, this should be done in<br>the style.<br>So, maybe a style function mem_pos() could help? I could be used in a rule<br>like this<br>type=route & route=mtb<br>{ apply mem_pos() = 1<br>  {<br>    set ...<br>  }<br>} <br><br>Or  maybe the style function should return "first", "somewhere", "last" ?<br><br>Gerd<br><br><br><br>--<br>Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html<br>_______________________________________________<br>mkgmap-dev mailing list<br>mkgmap-dev@lists.mkgmap.org.uk<br>http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br>