<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Hafas – Yeri Tiete</title>
    <link>https://yeri.be/tag/hafas/</link>
    <description>Yeri Tiete&#39;s blog</description>
    <language>en</language>
    <copyright>© Yeri Tiete</copyright>
    <lastBuildDate>Tue, 23 Sep 2008 18:50:22 +0200</lastBuildDate>
    <atom:link href="https://yeri.be/tag/hafas/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>iRail</title>
      <link>https://yeri.be/irail/</link>
      <pubDate>Tue, 23 Sep 2008 18:50:22 +0200</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/irail/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://irail.be&#34; target=&#34;_blank&#34;&gt;iRail.be&lt;/a&gt; will be the new domain for my NMBS/SNCB iPhone Route Planner. &lt;/p&gt;&#xA;&lt;p&gt;And expect some more updates by the end of the week. :)&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p><a href="http://irail.be" target="_blank">iRail.be</a> will be the new domain for my NMBS/SNCB iPhone Route Planner. </p>
<p>And expect some more updates by the end of the week. :)</p>
]]></content:encoded>
      <category>Misc</category><category>Software</category><category>iRail</category><category>www</category>
      <category>hafas</category><category>iPhone</category><category>nmbs</category><category>sncb</category>
    </item>
    
    <item>
      <title>Route Planner translation</title>
      <link>https://yeri.be/route-planner-translation/</link>
      <pubDate>Sat, 20 Sep 2008 23:34:44 +0200</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/route-planner-translation/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve started translating little bits of &lt;a href=&#34;https://yeri.be/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;the website&lt;/a&gt;, into French, Dutch and German (though some of it is still in English). I&amp;rsquo;ll be translating more the coming days (if it&amp;rsquo;s needed). Please report all typo&amp;rsquo;s you should encounter. &lt;/p&gt;&#xA;&lt;p style=&#34;text-align: center;&#34;&gt;&lt;a href=&#34;https://static.yeri.be/2008/09/photo-3.jpg&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;img class=&#34;alignnone size-medium wp-image-525&#34; title=&#34;iPhone NMBS/SNCB Route Planner Dutch&#34; src=&#34;https://static.yeri.be/2008/09/photo-3-200x300.jpg&#34; alt=&#34;&#34; width=&#34;200&#34; height=&#34;300&#34; /&gt;&lt;/a&gt; &lt;a href=&#34;https://static.yeri.be/2008/09/photo-11.jpg&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;img class=&#34;alignnone size-medium wp-image-523&#34; title=&#34;iPhone NMBS/SNCB Route Planner French&#34; src=&#34;https://static.yeri.be/2008/09/photo-11-200x300.jpg&#34; alt=&#34;&#34; width=&#34;200&#34; height=&#34;300&#34; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p style=&#34;text-align: center;&#34;&gt;&lt;a href=&#34;https://static.yeri.be/2008/09/photo-2.jpg&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;img class=&#34;alignnone size-medium wp-image-524&#34; title=&#34;iPhone NMBS/SNCB Route Planner English&#34; src=&#34;https://static.yeri.be/2008/09/photo-2-200x300.jpg&#34; alt=&#34;&#34; width=&#34;200&#34; height=&#34;300&#34; /&gt;&lt;/a&gt; &lt;a href=&#34;https://static.yeri.be/2008/09/photo2.jpg&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;img class=&#34;alignnone size-medium wp-image-522&#34; title=&#34;iPhone NMBS/SNCB Route Planner German&#34; src=&#34;https://static.yeri.be/2008/09/photo2-200x300.jpg&#34; alt=&#34;&#34; width=&#34;200&#34; height=&#34;300&#34; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p style=&#34;text-align: left;&#34;&gt;You can change the language options on the settings page.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I&rsquo;ve started translating little bits of <a href="https://yeri.be/" target="_blank" rel="noopener">the website</a>, into French, Dutch and German (though some of it is still in English). I&rsquo;ll be translating more the coming days (if it&rsquo;s needed). Please report all typo&rsquo;s you should encounter. </p>
<p style="text-align: center;"><a href="https://static.yeri.be/2008/09/photo-3.jpg" target="_blank" rel="noopener"><img class="alignnone size-medium wp-image-525" title="iPhone NMBS/SNCB Route Planner Dutch" src="https://static.yeri.be/2008/09/photo-3-200x300.jpg" alt="" width="200" height="300" /></a> <a href="https://static.yeri.be/2008/09/photo-11.jpg" target="_blank" rel="noopener"><img class="alignnone size-medium wp-image-523" title="iPhone NMBS/SNCB Route Planner French" src="https://static.yeri.be/2008/09/photo-11-200x300.jpg" alt="" width="200" height="300" /></a></p>
<p style="text-align: center;"><a href="https://static.yeri.be/2008/09/photo-2.jpg" target="_blank" rel="noopener"><img class="alignnone size-medium wp-image-524" title="iPhone NMBS/SNCB Route Planner English" src="https://static.yeri.be/2008/09/photo-2-200x300.jpg" alt="" width="200" height="300" /></a> <a href="https://static.yeri.be/2008/09/photo2.jpg" target="_blank" rel="noopener"><img class="alignnone size-medium wp-image-522" title="iPhone NMBS/SNCB Route Planner German" src="https://static.yeri.be/2008/09/photo2-200x300.jpg" alt="" width="200" height="300" /></a></p>
<p style="text-align: left;">You can change the language options on the settings page.</p>
]]></content:encoded>
      <category>Misc</category><category>Software</category><category>iRail</category><category>www</category>
      <category>hafas</category><category>iPhone</category><category>nmbs</category><category>sncb</category>
    </item>
    
    <item>
      <title>Route Planner bug fix</title>
      <link>https://yeri.be/route-planner-bug-fix/</link>
      <pubDate>Wed, 17 Sep 2008 11:55:11 +0200</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/route-planner-bug-fix/</guid>
      <description>&lt;p&gt;I just fixed a bug where he wouldn&amp;rsquo;t query the NMBS website if you hadn&amp;rsquo;t picked your language yet. Default language has been set to English.&lt;/p&gt;&#xA;&lt;p&gt;Thanks to Helene.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I just fixed a bug where he wouldn&rsquo;t query the NMBS website if you hadn&rsquo;t picked your language yet. Default language has been set to English.</p>
<p>Thanks to Helene.</p>
]]></content:encoded>
      <category>Errors</category><category>Misc</category><category>Software</category><category>iRail</category><category>www</category>
      <category>hafas</category><category>iPhone</category><category>nmbs</category><category>sncb</category>
    </item>
    
    <item>
      <title>Route Planner updates</title>
      <link>https://yeri.be/route-planner-updates/</link>
      <pubDate>Wed, 17 Sep 2008 01:53:48 +0200</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/route-planner-updates/</guid>
      <description>&lt;p&gt;These are the things &lt;a href=&#34;https://yeri.be/nmbssncb-for-iphone/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;I&amp;rsquo;ve worked on&lt;/a&gt;:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;    &lt;li&gt;changed color to dark blue&lt;/li&gt;&#xA;    &lt;li&gt;added a seperate settings page (you can only change the results page language at the moment (the content downloaded from the NMBS website))&lt;/li&gt;&#xA;    &lt;li&gt;language settings is saved in a cookie&lt;/li&gt;&#xA;    &lt;li&gt;station info is saved in a cookie too, instead of a session&lt;/li&gt;&#xA;    &lt;li&gt;changed date and time to use a dropdown menu and the menu should be updated to &#34;now&#34;&lt;/li&gt;&#xA;    &lt;li&gt;and many more small changes&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Website is accessible through this link: &lt;a href=&#34;https://yeri.be/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;a href=&#34;https://yeri.be&#34;&gt;https://yeri.be&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>These are the things <a href="https://yeri.be/nmbssncb-for-iphone/" target="_blank" rel="noopener">I&rsquo;ve worked on</a>:</p>
<ul>
    <li>changed color to dark blue</li>
    <li>added a seperate settings page (you can only change the results page language at the moment (the content downloaded from the NMBS website))</li>
    <li>language settings is saved in a cookie</li>
    <li>station info is saved in a cookie too, instead of a session</li>
    <li>changed date and time to use a dropdown menu and the menu should be updated to "now"</li>
    <li>and many more small changes</li>
</ul>
<p>Website is accessible through this link: <a href="https://yeri.be/" target="_blank" rel="noopener"><a href="https://yeri.be">https://yeri.be</a></a></p>
<p>Thanks to <a href="http://twitter.com/anner" target="_blank" rel="noopener">Anner</a> for the great feedback.</p>
<p style="text-align: center;"><a href="https://static.yeri.be/2008/09/routeplanner.jpg" target="_blank" rel="noopener"><img class="alignnone size-medium wp-image-495" title="iPhone NMBS/SNCB route planner" src="https://static.yeri.be/2008/09/routeplanner-300x200.jpg" alt="" width="300" height="200" /></a></p>
]]></content:encoded>
      <category>Misc</category><category>Software</category><category>iRail</category><category>www</category>
      <category>hafas</category><category>iPhone</category><category>nmbs</category><category>sncb</category>
    </item>
    
    <item>
      <title>NMBS/SNCB for iPhone</title>
      <link>https://yeri.be/nmbssncb-for-iphone/</link>
      <pubDate>Tue, 16 Sep 2008 12:28:45 +0200</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/nmbssncb-for-iphone/</guid>
      <description>&lt;p&gt;As there is &lt;a href=&#34;https://yeri.be/nmbs-api/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;no iPhone compatible website or application&lt;/a&gt;, I created my own NMBS &amp;ldquo;route planner&amp;rdquo; for the iPhone. This is no app though, this is just an iPhone website.&lt;/p&gt;&#xA;&lt;p&gt;Basicly, this is what you can do:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;    &lt;li&gt;fill in departure station&lt;/li&gt;&#xA;    &lt;li&gt;fill in arrival station&lt;/li&gt;&#xA;    &lt;li&gt;fill in time and date (of departure)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;At this stage of the project, only the basic train details are shown (departure time, arrival time) and up to 3 or 4 different possibilities (depending what the NMBS website replies).&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>As there is <a href="https://yeri.be/nmbs-api/" target="_blank" rel="noopener">no iPhone compatible website or application</a>, I created my own NMBS &ldquo;route planner&rdquo; for the iPhone. This is no app though, this is just an iPhone website.</p>
<p>Basicly, this is what you can do:</p>
<ul>
    <li>fill in departure station</li>
    <li>fill in arrival station</li>
    <li>fill in time and date (of departure)</li>
</ul>
<p>At this stage of the project, only the basic train details are shown (departure time, arrival time) and up to 3 or 4 different possibilities (depending what the NMBS website replies).</p>
<p>There is no option (and I&rsquo;m unsure whether there will be in the future) to see details about a selected trip (like stops and station changes).</p>
<p>The site is made in English, but you can choose in what language you want the results, the only problem I&rsquo;ve seen so far is that for DE and EN all train station names are in French (Antwerp becomes Anvers), but this &ldquo;bug&rdquo; lies out of my hands, as all train information is received from the NMBS websites, including station names.</p>
<p>Basicly this is what it does: it opens a HTTP socket to the NMBS site, filling in your details (like date and stations), and gets the reply back (if the NMBS site replies in time, I&rsquo;ve seen a few time outs).</p>
<p>All unrequired information is cut off, and you remain with just the trip details. Which should just fit your iPhone in landscape mode.</p>
<p>When filling in your station details, please use existing stations names (language shouldn&rsquo;t matter), including Central, North, South, etc if needed. Requesting the station &ldquo;Brussels&rdquo; won&rsquo;t work and will just display an empty page for now.</p>
<p>Things I&rsquo;ll be working on:</p>
<ul>
    <li>layout and design of the trip detail page</li>
    <li>I've seen that my Sessions do some weird stuff from time to time (refresh the main page 2x and all sessions are destroyed); but that's something I'll have to look in</li>
    <li>Well, I guess most users want more information, so I'll have to try to get trip details</li>
    <li>and better data handling. Still too much unrequired information.</li>
    <li>Error handling, if e.g. the station doesn't exist or the date/time is incorrect</li>
</ul>
<p>Please leave your feedback/bug reports in a comment or per e-mail.</p>
<p>Also, if visiting the website with <a href="https://static.yeri.be/2008/09/firefox.png" target="_blank" rel="noopener">Firefox</a>, <a href="https://static.yeri.be/2008/09/ie2.png" target="_blank" rel="noopener">I</a><a href="https://static.yeri.be/2008/09/ie1.png" target="_blank" rel="noopener">E</a> or even <a href="https://static.yeri.be/2008/09/chrome.png" target="_blank" rel="noopener">Chrome</a>&hellip; Yes, it&rsquo;s not compatible to any of them. My website looks dodgy in those browsers; I&rsquo;ve only focussed on the iPhone browser.</p>
<p style="text-align: center;"><a href="https://static.yeri.be/2008/09/nmbsmobile1.jpg" target="_blank" rel="noopener"><img class="alignnone size-medium wp-image-478" title="NMBS/SNCB for the iPhone" src="https://static.yeri.be/2008/09/nmbsmobile1-200x300.jpg" alt="" width="200" height="300" /></a><a href="https://static.yeri.be/2008/09/nmbsmobile2.jpg" target="_blank" rel="noopener"> </a></p>
<p style="text-align: center;"><a href="https://static.yeri.be/2008/09/nmbsmobile2.jpg" target="_blank" rel="noopener"><img class="alignnone size-medium wp-image-480" title="NMBS/SNCB for the iPhone" src="https://static.yeri.be/2008/09/nmbsmobile2-300x200.jpg" alt="" width="300" height="200" /></a></p>
]]></content:encoded>
      <category>Misc</category><category>Software</category><category>iRail</category><category>www</category>
      <category>hafas</category><category>iPhone</category><category>nmbs</category><category>sncb</category>
    </item>
    
    <item>
      <title>NMBS API?</title>
      <link>https://yeri.be/nmbs-api/</link>
      <pubDate>Sun, 14 Sep 2008 04:43:14 +0200</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/nmbs-api/</guid>
      <description>&lt;p&gt;While trying to find an &lt;a href=&#34;https://web.archive.org/web/20100420105842/http://www.netsensei.nl:80/archives/openclosed-nmbs/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;API&lt;/a&gt; or &amp;ldquo;&lt;a href=&#34;https://web.archive.org/web/20130525042556/http://www.bornontheweb.be/2007/11/26/an-nmbs-open-web-service&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;mobile&lt;/a&gt;&amp;rdquo; (read: iPhone) access for the &lt;a href=&#34;http://www.b-rail.be/main/N/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;NMBS&lt;/a&gt; website, I came upon some cool stuff.&lt;/p&gt;&#xA;&lt;p&gt;The time table and train managing software seems made in Germany. The &lt;a href=&#34;https://web.archive.org/web/20140703161130/http://hari.b-holding.be:80/hafas/bin/query.exe/nn?&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;NMBS &amp;ldquo;look up&amp;rdquo; site&lt;/a&gt; gives you the software and version it is using (&amp;quot;&lt;em&gt;Software versie/dataversie: &lt;a href=&#34;https://web.archive.org/web/20080827165535/http://www.railplanner.co.uk/producthafas.php&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;HAFAS&lt;/a&gt; 5.21.B-RAIL.4.7f/5.21.B-RAIL.4.7k - 14/09/08&lt;/em&gt;&amp;quot;).&lt;/p&gt;&#xA;&lt;p&gt;Googling for Hafas returns some cool websites.&lt;/p&gt;&#xA;&lt;p&gt;Using &lt;a href=&#34;http://print2web.hafas.de/hst/db/tb/query-p2w.exe/en?L=vs_p2w&amp;amp;whichTask=pf&amp;amp;&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;this one&lt;/a&gt;, you can download a &lt;a href=&#34;https://static.yeri.be/2008/09/vilvoordeantwerpen_centraal.pdf&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;pdf&lt;/a&gt; with all train (including hours) info between two stations. Not quite the same as an API-key, but at least you have something you can save and use lateron.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>While trying to find an <a href="https://web.archive.org/web/20100420105842/http://www.netsensei.nl:80/archives/openclosed-nmbs/" target="_blank" rel="noopener noreferrer">API</a> or &ldquo;<a href="https://web.archive.org/web/20130525042556/http://www.bornontheweb.be/2007/11/26/an-nmbs-open-web-service" target="_blank" rel="noopener noreferrer">mobile</a>&rdquo; (read: iPhone) access for the <a href="http://www.b-rail.be/main/N/" target="_blank" rel="noopener noreferrer">NMBS</a> website, I came upon some cool stuff.</p>
<p>The time table and train managing software seems made in Germany. The <a href="https://web.archive.org/web/20140703161130/http://hari.b-holding.be:80/hafas/bin/query.exe/nn?" target="_blank" rel="noopener noreferrer">NMBS &ldquo;look up&rdquo; site</a> gives you the software and version it is using (&quot;<em>Software versie/dataversie: <a href="https://web.archive.org/web/20080827165535/http://www.railplanner.co.uk/producthafas.php" target="_blank" rel="noopener noreferrer">HAFAS</a> 5.21.B-RAIL.4.7f/5.21.B-RAIL.4.7k - 14/09/08</em>&quot;).</p>
<p>Googling for Hafas returns some cool websites.</p>
<p>Using <a href="http://print2web.hafas.de/hst/db/tb/query-p2w.exe/en?L=vs_p2w&amp;whichTask=pf&amp;" target="_blank" rel="noopener noreferrer">this one</a>, you can download a <a href="https://static.yeri.be/2008/09/vilvoordeantwerpen_centraal.pdf" target="_blank" rel="noopener noreferrer">pdf</a> with all train (including hours) info between two stations. Not quite the same as an API-key, but at least you have something you can save and use lateron.</p>
<p><a href="http://print2web.hafas.de/hst/db/tb/query-p2w.exe/en?L=vs_p2w&amp;whichTask=str&amp;" target="_blank" rel="noopener noreferrer">This</a> seems to be giving <a href="https://static.yeri.be/2008/09/vilvoordeantwerpen_centraal-1.pdf" target="_blank" rel="noopener noreferrer">all stops a train will have</a> (or all trains) between two stations. Though the &ldquo;stoptrains&rdquo; aren&rsquo;t in the list, and the IR-train does stop at Mechelen-Nekkerspoel too, which isn&rsquo;t on the list either. <a href="https://static.yeri.be/2008/09/vilvoordeantwerpen_centraal-2.pdf" target="_blank" rel="noopener noreferrer">This PDF</a> seems more accurate, and seems to be including all trains.</p>
<p>But still, the <a href="https://web.archive.org/web/20081207023540/http://www.bahn.de:80/p/view/planen/reiseplanung/mobileservices/railnavigator.shtml" target="_blank" rel="noopener noreferrer">DB seem to be ahead</a> of us (well, what country isn&rsquo;t?). Here is <a href="https://web.archive.org/web/20110304221754/http://www.hacon.de:80/hafas_e/hafas2go.shtml" target="_blank" rel="noopener noreferrer">one of the functionalities</a> of HAFAS, which I haven&rsquo;t seen on the NMBS site yet. Correct me if I&rsquo;m wrong, but <a href="https://web.archive.org/web/20120509224253/http://www.b-rail.be/nat/N/timetables/pocket/index.php" target="_blank" rel="noopener noreferrer">this seems something different</a>. And&hellip; Windows-fucking-mobile-only.</p>
<p>Pretty much same problem with <a href="https://web.archive.org/web/20100426111346/http://www.thalys.com:80/be/nl/praktische-reisgids/voor/thalys-mobiel" target="_blank" rel="noopener noreferrer">Thalys</a>. They even made <a href="https://web.archive.org/web/20111210065004/http://thalys.mobi:80/" target="_blank" rel="noopener noreferrer">thalys.mobi</a>, yet, <a href="https://static.yeri.be/2008/09/photo.jpg" target="_blank" rel="noopener noreferrer">when accessing it with the iPhone</a> (as I lack other PDA-ish devices to test it at the moment) it doesn&rsquo;t scale/resize/fit my screen, and is displaying the same window I have when browsing it with Firefox.</p>
<p>Wouldn&rsquo;t it be cool if we had some open (xml?) API, where we could submit departure station, arrival station, and some time, and get a reply with one or multiple results?</p>
<p>I guess I would&rsquo;ve hoped for more in these &ldquo;mobile&rdquo; days.</p>
<p>Edit: <a href="https://yeri.be/nmbssncb-for-iphone/" target="_blank" rel="noopener noreferrer">my attempt</a> to make something.</p>
]]></content:encoded>
      <category>Misc</category><category>iRail</category><category>www</category>
      <category>api</category><category>hafas</category><category>iPhone</category><category>mobile</category><category>nmbs</category>
    </item>
    
  </channel>
</rss>
