<div class=WordSection1><p class=MsoNormal><o:p> </o:p></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><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:andreas.schmidt.hetschbach@t-online.de">andreas.schmidt.hetschbach@t-online.de</a><br><b>Gesendet: </b>Sonntag, 18. November 2018 11:00<br><b>An: </b><a href="mailto:gpetermann_muenchen@hotmail.com">Gerd Petermann</a><br><b>Betreff: </b>AW: AW: [mkgmap-dev] Add a POI to the start of a relation (route:mtb)</p></div><p class=MsoNormal><o:p> </o:p></p></div><div class=WordSection1><p class=MsoNormal>Hi Gerd,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>you got it. </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>1-2) I see these Problems also. But there are at least partial goals one could achieve even if the route is incomplete or not sorted:</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 lfo2'>One can search for MTB-Routes as POIs (taking into account that the POI could be shown SOMEwhere on the route)</li><li class=MsoListParagraph style='margin-left:0cm;mso-list:l0 level1 lfo2'>Obtain all the data which is avaiable on OSM About the route (like ascent/distance, Operator, Website )</li></ul><p class=MsoNormal>3) At least the goals as in 1-2 will be reached, in addition mkgmap could check role = Forward/backward to be sure if the end or the beginning of the way is the first node. (if it is way).</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Andreas </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><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>Sonntag, 18. November 2018 10:08<br><b>An: </b><a href="mailto:andreas.schmidt.hetschbach@t-online.de">andreas.schmidt.hetschbach@t-online.de</a><br><b>Betreff: </b>AW: AW: [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 see a few problems here:<br>1) The members might not be sorted<br>2) The relation might be incomplete. I think splitter would not take care to keep route relations complete, but maybe it does with the right options.<br>3) The direction of the first way might be wrong, means, the first node is not the start of the route, instead it would be the last node of that way.<br><br>For reasonable results you need some logic in a program that "sees" the complete relation. The logic gets more complicated when the route has gaps.<br>A simple logic would be to assume that the members are sorted and complete. In that case mkgmap could try to check which node of the first member connects to the 2nd member. If it is the first node it would add a POI to the last node, else vice versa. The POI is ignored if it is outside of the tile boundary.<br>Do you think about something like that?<br><br>Gerd<br><br>________________________________________<br>Von: andreas.schmidt.hetschbach@t-online.de <andreas.schmidt.hetschbach@t-online.de><br>Gesendet: Sonntag, 18. November 2018 09:44<br>An: Gerd Petermann<br>Cc: Development list for mkgmap<br>Betreff: Re: AW: [mkgmap-dev] Add a POI to the start of a relation (route:mtb)<br><br>Hi Gerd,<br><br>Thx for your answer. I tried this before and it worked for the routes (relations) tagged by myself.<br><br>The problem is that most other relations dont have members with role „Start“ (if they have any).<br><br>My idea was that mkgmap could set a POI for the Route (Relation). Something like addPOI2routes. It should be set at the first member of the relation. If it is a way the same process like in addpoi2lines could be used.<br><br>I found a similar discussion at<br><br>http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2013q4/019188.html<br><br>No idea what was the conclusion on that.<br><br>Thx<br><br>Andreas<br><br><br>Am 17.11.2018 um 18:06 schrieb Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>>:<br><br>Hi Andreas,<br><br>sorry, the first post slipped my mind. I didn't try it but I think it should be possible to add a rule to the relations<br>file with something like<br>type=route & route=mtb {<br>   apply role=start{<br>       set tmp:mtb_route=true;<br>   }<br>}<br><br>Together with --add-pois-to-lines you should find a node with the tag tmp:mtb_route=true<br>Now you need some more logic like this<br>tmp:mtb_route=true & (mkgmap:line2poi=true & mkgmap:line2poitype=start | mkgmap:line2poi!=true) [...]<br>in the points file.<br><br>Gerd<br><br>________________________________________<br>Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>> im Auftrag von andreas.schmidt.hetschbach@t-online.de<mailto:andreas.schmidt.hetschbach@t-online.de> <andreas.schmidt.hetschbach@t-online.de<mailto:andreas.schmidt.hetschbach@t-online.de>><br>Gesendet: Samstag, 17. November 2018 14:47<br>An: Development list for mkgmap<br>Betreff: Re: [mkgmap-dev] Add a POI to the start of a relation (route:mtb)<br><br>…no answer to that…<br>Propably this is not an issue for developers, is there a Group/list to which this issue fits better?<br><br>Thx<br><br>Andreas<br><br>Gesendet von Mail<https://go.microsoft.com/fwlink/?LinkId=550986> für Windows 10<br><br>Von: andreas.schmidt.hetschbach@t-online.de<mailto:andreas.schmidt.hetschbach@t-online.de><mailto:andreas.schmidt.hetschbach@t-online.de><br>Gesendet: Montag, 12. November 2018 09:10<br>An: mkgmap-dev<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>; Development list for mkgmap<mailto:mkgmap-dev@lists.mkgmap.org.uk><br>Betreff: [mkgmap-dev] Add a POI to the start of a relation (route:mtb)<br><br>Hi all,<br><br>I would like to add something like a start-flag to mtb-routes containing all the Information of this relation available in OSM (like ascent, descent, distance). I tried  addpoi2lines and restrict this to a special member of the relation (like role=start). This works, but the nodes aren`t tagged this way.<br><br>Is there a chance to restrict the addpoi2lines to the FIRST member-node of the relation? This would<br><br><br> *   Restrict the creation of a POI to only one way of the relation<br> *   Restrict the creation to the start of the relation, assuming the relation is created in the Right order.<br><br>Thx for any help,<br><br>Andreas<br><br>Gesendet von Mail<https://go.microsoft.com/fwlink/?LinkId=550986> für Windows 10<br><br><br>