Hi,<br><br>I like that proposal, but I don't know how to implement it for openlinkmap. The developer is accepting patches, but he doesn't have time to code stuff himself anymore.<br><br>My initial proposal had the advantage of instant gratification. It would work with the current tagging habits. It's true that it has the disadvantage of being dependent on the continued use of that url domain by De Lijn and it's more verbose than I would like.<br>
<br>One small remark. The way I understand it we are moving to replacing highway=bus_stop with public_transport=platform. So it should work for that combination of tags as well.<br><br>And it should be enough that a node contains De Lijn. Some stops are shared with MIVB/STIB, TEC and VEOLIA.<br>
<br>Jo<br><br><div class="gmail_quote">2013/1/30 Sander Deryckere <span dir="ltr"><<a href="mailto:sanderd17@gmail.com" target="_blank">sanderd17@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've just been thinking about this issue. And I assume that we're not the only one with this problem, where the url you want to see would depend on a reference tag.<br><br>So, why not create a shared document that defines how to get different url's from different kind of tags. I think about creating an XML document with an extension of RegExp. Here's an example of what I got this far, for simple url tags, for difficult wikipedia tags, and for our example from "De Lijn". Also some extensions for images and phone numbers are possible. This way, every country could have its own custom links for certain public transport things, or restaurant or supermarket chains. It also means that, if the url ever changes, only this document needs to be changed, not a bazillion of OSM elements.<br>


<br>Here's my example<br><a href="http://pastebin.com/QDHJKxtX" target="_blank">http://pastebin.com/QDHJKxtX</a><br><br>Let me explain it.<br><br>The top XML node is simple. The subnodes are <link> nodes. They're meant to link OSM elements to external stuff (like websites, images, phone numbers etc).<br>


<br>A <link> node contains tags, they have a key and value expressed in an extension of extended POSIX regex (<a href="http://en.wikipedia.org/wiki/Regex#POSIX" target="_blank">http://en.wikipedia.org/wiki/Regex#POSIX</a>). Basically, during the reading of the regex, you also store stuff in variables, which can be used later.<br>


<br>Let me explain the most difficult one, the wikipedia link. The first part of the extended regex is "[a-z]*". This stands for the language code, and it's stored in variable "l" for later usage (with the syntax "\l"). Then you have a column, this sign isn't used in the link, so it's stored in the variable "0" (with the syntax "\0"). As a last part, you have a random string ".*" and it's stored in the variable "n". <br>


<br>Later, these variables are used in the creation of the url. <br><br>The example for De Lijn requires three different OSM tags to be present, but only uses the value from the ref tag to create the url.<br><br>One link can link a combination of OSM tags to multiple things (like multiple urls, or an url and an image).<br>


<br>This is just a proposal btw, the exact syntax is up for discussion. But I think it would solve all similar examples as we have with De Lijn, it will be beneficial for Openlinkmap, and by creating a standard, the file could be shared with other websites and apps too. <br>


<br>The same file could be used to link this node <a href="http://www.openstreetmap.org/browse/node/724232554" target="_blank">http://www.openstreetmap.org/browse/node/724232554</a> to this page <a href="http://www.connexxion.nl/dienstregeling/haltedisplay/57002550" target="_blank">http://www.connexxion.nl/dienstregeling/haltedisplay/57002550</a><br>


<br>If it makes sense to you guys, maybe we should ask openlinkmap to try support for such a settings file. If openlinkmap agrees, it could also be implemented in other apps s.a. OsmAnd.<br><br>Regards,<br>Sander<div class="HOEnZb">
<div class="h5"><br><br>
<br>
<div class="gmail_quote">2013/1/30 Sander Deryckere <span dir="ltr"><<a href="mailto:sanderd17@gmail.com" target="_blank">sanderd17@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<p dir="ltr">I don't really like this. The problem isn't putting this tag on all existing stops. The problem is communicating this to non-members of this list.</p>
<p dir="ltr">I think openlinkmap and other data users should in the end know that operator="De Lijn"+ref=x0xxxx translates to the url <a href="http://mijnlijn.be/x0xxxx" target="_blank">mijnlijn.be/x0xxxx</a>.</p>



<p dir="ltr">It's easier to patch their software than to learn all mappers what to put in the url tag.</p>
<p dir="ltr">Just my opinion though.</p>
<p dir="ltr">Regards,<br>
Sander.</p><div><div>
<div class="gmail_quote">On 30 Jan 2013 14:15, "Ben Abelshausen" <<a href="mailto:ben.abelshausen@gmail.com" target="_blank">ben.abelshausen@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



+1 on the <span style="line-height:19.1875px;font-size:13px;font-family:sans-serif">url=<a href="http://mijnlijn.be/#%7Bref%7D" target="_blank">http://mijnlijn.be/#{ref}</a> feature!</span><br><br>Does anyone have the time to actually translate this into code?<br>




<br><div class="gmail_quote">
On Wed, Jan 30, 2013 at 1:38 PM, Wim Crols <span dir="ltr"><<a href="mailto:wim@crols.be" target="_blank">wim@crols.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div dir="ltr">on the wiki page it says the following<div><br></div><div><a href="https://wiki.openstreetmap.org/wiki/OpenLinkMap#Contribute" target="_blank">https://wiki.openstreetmap.org/wiki/OpenLinkMap#Contribute</a><br>





</div><div><br>
</div><div><b style="line-height:19.1875px;font-size:13px;font-family:sans-serif">Programming:</b><span style="line-height:19.1875px;font-size:13px;font-family:sans-serif"> You created an interesting new feature or fixed a bug in the existing code? Please send me your code and I will add it.</span><br>






</div><div><span style="line-height:19.1875px;font-size:13px;font-family:sans-serif"><br></span></div><div><span style="line-height:19.1875px;font-size:13px;font-family:sans-serif">on second thoughts it would even be better that openlinkmap would support this kind of url</span></div>






<div><span style="line-height:19.1875px;font-size:13px;font-family:sans-serif"><br></span></div><div><span style="line-height:19.1875px;font-size:13px;font-family:sans-serif">url=<a href="http://mijnlijn.be/#%7Bref%7D" target="_blank">http://mijnlijn.be/#{ref}</a></span></div>






<div><span style="line-height:19.1875px;font-size:13px;font-family:sans-serif"><br></span></div><div><span style="line-height:19.1875px;font-size:13px;font-family:sans-serif">where it will replace a placeholder with the contents of a tag with the name of the placeholder.</span></div>






<div><span style="line-height:19.1875px;font-size:13px;font-family:sans-serif">This is more versatile and could be used for other purposes too.</span></div></div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">
On Wed, Jan 30, 2013 at 11:26 AM, Jo <span dir="ltr"><<a href="mailto:winfixit@gmail.com" target="_blank">winfixit@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






I asked the admins of openlinkmap if this is even possible, but I'm still waiting for a reply, of course. I was planning to wait for their answer to react to Wim's suggestion.<span><font color="#888888"><br>
<br>Jo</font></span><div><div><br><br><div class="gmail_quote">
2013/1/30 Ben Abelshausen <span dir="ltr"><<a href="mailto:ben.abelshausen@gmail.com" target="_blank">ben.abelshausen@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







I guess that would mean adapting openlinkmap specifically for <a href="http://mijnlijn.be" target="_blank">mijnlijn.be</a>. Is that a good idea?<br><br>Regards,<br><br>Ben<div><div><br><br><div class="gmail_quote">
On Wed, Jan 30, 2013 at 10:26 AM, Wim Crols <span dir="ltr"><<a href="mailto:wim@crols.be" target="_blank">wim@crols.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I would suggest the following<div><br></div><div>Leave ref tag as it is "ref=x0xxxx"</div><div>








Put in url tag the following "<a href="http://mijnlijn.be/" target="_blank">http://mijnlijn.be/</a>"<br></div>
<div><br></div><div>And make a software patch for openlinkmap to show the correct link on existence of the following tags</div><div><div>   highway = bus_stop</div><div>   operator = De Lijn<br></div><div>   ref = 303119</div>









<div>   url = <a href="http://mijnlijn.be/" target="_blank">http://mijnlijn.be/</a><br></div></div><div><br></div><div>Regards</div><div><br></div><div>Wim Crols</div><div><br></div></div><div class="gmail_extra"><br><br>








<div class="gmail_quote"><div><div>
On Wed, Jan 30, 2013 at 9:31 AM, Jo <span dir="ltr"><<a href="mailto:winfixit@gmail.com" target="_blank">winfixit@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">








<div><div>
Hi,<br><br>Historically we have been putting the 6 digit serial number we found on the stops of De Lijn into ref. I would like to propose to move them to:<br><br>url=<a href="http://mijnlijn.be/x0xxxx" target="_blank">mijnlijn.be/x0xxxx</a><br>










<br>That way they would be a lot more useful on sites like openlinkmap:<br><br><a href="http://www.openlinkmap.org/?zoom=18&lat=50.87952&lon=4.69273&layers=B" target="_blank">http://www.openlinkmap.org/?zoom=18&lat=50.87952&lon=4.69273&layers=B</a><br>










<br>The link translates to a webpage with realtime information of the buses that serve the stop and it's very convenient to be able to click through on them with a smartphone, a tablet or even from the desktop.<br><br>










To avoid redundancy I wouldn't keep the number in ref anymore. It's quite specific to De Lijn, so somebody who wants to do something with those serial numbers, can just as well extract them from the url.<span><font color="#888888"><br>









<br>Jo<br>
<br><br><br>
</font></span><br></div></div>_______________________________________________<br>
Talk-be mailing list<br>
<a href="mailto:Talk-be@openstreetmap.org" target="_blank">Talk-be@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/talk-be" target="_blank">http://lists.openstreetmap.org/listinfo/talk-be</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Talk-be mailing list<br>
<a href="mailto:Talk-be@openstreetmap.org" target="_blank">Talk-be@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/talk-be" target="_blank">http://lists.openstreetmap.org/listinfo/talk-be</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Talk-be mailing list<br>
<a href="mailto:Talk-be@openstreetmap.org" target="_blank">Talk-be@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/talk-be" target="_blank">http://lists.openstreetmap.org/listinfo/talk-be</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Talk-be mailing list<br>
<a href="mailto:Talk-be@openstreetmap.org" target="_blank">Talk-be@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/talk-be" target="_blank">http://lists.openstreetmap.org/listinfo/talk-be</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Talk-be mailing list<br>
<a href="mailto:Talk-be@openstreetmap.org" target="_blank">Talk-be@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/talk-be" target="_blank">http://lists.openstreetmap.org/listinfo/talk-be</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
Talk-be mailing list<br>
<a href="mailto:Talk-be@openstreetmap.org" target="_blank">Talk-be@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/talk-be" target="_blank">http://lists.openstreetmap.org/listinfo/talk-be</a><br>
<br></blockquote></div>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Talk-be mailing list<br>
<a href="mailto:Talk-be@openstreetmap.org">Talk-be@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/talk-be" target="_blank">http://lists.openstreetmap.org/listinfo/talk-be</a><br>
<br></blockquote></div><br>