<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>On the road again &#187; swisstrains</title>
	<atom:link href="http://blog.vasile.ch/tag/swisstrains/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.vasile.ch</link>
	<description>Adventures of a map addict in Elveţia</description>
	<lastBuildDate>Sat, 04 Feb 2012 23:29:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Simcity updates, January</title>
		<link>http://blog.vasile.ch/2012/01/simcity-updates-january/</link>
		<comments>http://blog.vasile.ch/2012/01/simcity-updates-january/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 18:11:00 +0000</pubDate>
		<dc:creator>vasile</dc:creator>
				<category><![CDATA[Hobbies]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[swisstrains]]></category>

		<guid isPermaLink="false">http://blog.vasile.ch/?p=1383</guid>
		<description><![CDATA[There are not too many updates this month except the fact that I focused on code refactoring, readability and URL scheme polishing for the webtuesday.ch presentation that I held on January 10th. The slides are available on Slideshare for download; thanks everyone who attended ! Changes As i said before, did some serious code refactoring, [...]]]></description>
			<content:encoded><![CDATA[<p>There are not too many updates this month except the fact that I focused on code refactoring, readability and URL scheme polishing for the <a href="http://webtuesday.ch/meetings/20120110/" title="Webtuesday" target="_blank">webtuesday.ch</a> presentation that I held on January 10th. The slides are available on <a href="http://www.slideshare.net/vasile23/swisstrainsch-present-past-and-future" title="Slideshare" target="_blank">Slideshare</a> for download; thanks everyone who attended !</p>
						<div class="flickr-gallery image none"><a href="http://www.flickr.com/photos/vasile23/6819160281"><img class="flickr small" title="Swisstrains meets webtuesday" alt="Swisstrains meets webtuesday" src="http://farm8.static.flickr.com/7003/6819160281_bec2da7661_m.jpg" /></a></div>
					
<p><span id="more-1383"></span></p>
<h3>Changes</h3>
<ul>
<li>As i said before, did some serious <strong>code refactoring</strong>, if you have troubles in merging, I am happy to help.</li>
<li>Several <strong>query string parameters</strong> can be used to customize the simulation:
<ul>
<li><strong>hms</strong>: used to set the simulation time in hh:mm:ss format (i.e. the simulation position for <a href="http://simcity.vasile.ch/sbb/?hms=17%3A45%3A13" title="hms" target="_blank">17:45:13</a>.)</li>
<li><strong>x</strong>, <strong>y</strong>: longitude and latitude &#8211; used to set the simulation start location to a custom location (i.e. <a href="http://simcity.vasile.ch/sbb/?x=6.629&amp;y=46.517" title="x,y" target="_blank">Lausanne</a>)</li>
<li><strong>vehicle_name</strong>: used to automatically track a vehicle when we know its name. Example: the <a href="http://simcity.vasile.ch/sbb/?hms=17:45:13&amp;vehicle_name=IC+835" title="vehicle_name" target="_blank">position of IC 835</a> at 17:45. Will let your imagine how easy is to integrate (via an IFRAME ?) <a href="http://screencast.com/t/M7gLuAZ78" title="SBB IC 835" target="_blank">this</a> &#8220;boring&#8221; table view from SBB.</li>
<li>Bunch of experimental parameters(action, station_ids, arrs, deps, vehicle_name, vehicle_type) &#8211; used for adding a custom vehicle having the timetables declared via querystring. Example: <a href="http://simcity.vasile.ch/sbb/?action=vehicle_add&amp;vehicle_name=Za%20TGV&amp;vehicle_type=tgv&amp;station_ids=8507000_8503000_8500010&amp;deps=1305_1404&amp;arrs=1355_1420&amp;hms=14%3A16%3A30" title="vehicle_add" target="_blank">a TGV</a> running with 330 km/h between Zürich and Basel; it needs only 16 minutes <img src='http://blog.vasile.ch/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</li>
</ul>
</li>
<li><strong>Stations panel</strong>: integration between stations and vehicles. <a href="http://screencast.com/t/EfpOj3ptaHwU" title="vehicle panel" target="_blank">Clicking</a> on a vehicle brings a panel showing the stations that the vehicle stopped (grey-ish) and the upcoming stations. <a href="http://screencast.com/t/jNFv2g5A" title="Station vehicles panel" target="_blank">Clicking</a> on any station loads the station panel containing the next 10 vehicles transiting that station. Clicking on any vehicle starts following the vehicle and so on. Personally I did a lot of clicking but you know that I am a train buff already <img src='http://blog.vasile.ch/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</li>
</ul>
<h3>Stay up-to-date</h3>
<p>If you want to stay in touch with these updates, best will be to subscribe to this project&#8217;s <a href="http://blog.vasile.ch/tag/swisstrains/feed/" title="RSS link" target="_blank">RSS feed</a>.<br />
Use <a href="http://twitter.com/vasile23" title="Twitter">Twitter</a> or this space to get in touch with me and suggest further updates. </p>
<p><strong>Thanks for your interest in this project !</strong></p>
<p><a href="https://github.com/vasile/vehicle-simulator" target="_blank">https://github.com/vasile/vehicle-simulator</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vasile.ch/2012/01/simcity-updates-january/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simcity updates, December 18</title>
		<link>http://blog.vasile.ch/2011/12/simcity-updates-december-18/</link>
		<comments>http://blog.vasile.ch/2011/12/simcity-updates-december-18/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 21:48:49 +0000</pubDate>
		<dc:creator>vasile</dc:creator>
				<category><![CDATA[Hobbies]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[swisstrains]]></category>

		<guid isPermaLink="false">http://blog.vasile.ch/?p=1333</guid>
		<description><![CDATA[The highlight of this release is a feature that is very popular on version 1 of swisstrains.ch: follow vehicle which allows you to &#8220;travel&#8221; together with a selected vehicle on the map. You can activate it in the same way, just click on the moving marker(vehicle) then in the vehicle panel click the &#8216;Follow&#8217; button. [...]]]></description>
			<content:encoded><![CDATA[<p>The highlight of this release is a feature that is very popular on version 1 of swisstrains.ch: follow vehicle which allows you to &#8220;travel&#8221; together with a selected vehicle on the map. You can activate it in the same way, just click on the moving marker(vehicle) then in the vehicle panel <a href="http://screencast.com/t/Z1btuhJDvBbr" target="_blank">click the &#8216;Follow&#8217; button</a>. The feature is available also in the <a href="http://cfr.webgis.ro">romanian version</a> despite the fact that Google Maps Satellite material has good quality only in some areas of Romania.</p>
<p><img src="http://blog.vasile.ch/wp-content/uploads/2011/12/swisstrains-follow-300x168.png" alt="" width="300" height="168" class="alignnone size-medium wp-image-1335" /><br />
<span id="more-1333"></span></p>
<h3>Other changes</h3>
<ul>
<li><a href="http://screencast.com/t/sI2ysaHubf" target="_blank">Vehicle route</a>: you can highlight the route that is followed by the vehicle when clicking on &#8216;Draw route&#8217; button in the vehicle panel. Useful if you are interested which corners of the country are connected but also good for me in debugging if vehicles are following the right routes. </li>
<li>Newly fresh 2012 timetables are available: last week I managed to get and integrate the latest timetables from <a href="http://fahrplan.sbb.ch/bin/query.exe/en" target="_blank">SBB</a> and <a href="http://infofer.ro/" target="_blank">CFR</a> websites. BTW, I just noticed that Romania changed trains classification to use European standar ones, like IC, IR, Regio, etc.</li>
</ul>
<h3>Behind the scenes of this project</h3>
<p>I will give a talk about swisstrains.ch on <a href="http://webtuesday.ch/meetings/20120110/" target="_blank">January 10th</a> in Zürich at first meetup of <a href="http://webtuesday.ch/" target="_blank">Webtuesday.ch</a> in 2012. If you are interested about what it took me to create the initial project, the technology stack used and the lessons learned, then make sure you attend the meeting ! More details about location are <a href="http://webtuesday.ch/meetings/20120110/" target="_blank">here</a>.</p>
<h3>Stay up-to-date</h3>
<p>If you want to stay in touch with these updates, best will be to subscribe to this project&#8217;s <a href="http://blog.vasile.ch/tag/swisstrains/feed/" title="RSS link" target="_blank">RSS feed</a>.<br />
Use <a href="http://twitter.com/vasile23" title="Twitter">Twitter</a>, <a href="https://plus.google.com/108226495995126683095/about" title="Google+" target="_blank">G+</a> or this space to get in touch with me and suggest further updates. </p>
<p><strong>Thanks for your interest in this project !</strong></p>
<p><a href="http://simcity.vasile.ch/sbb/" target="_blank">http://simcity.vasile.ch/sbb/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vasile.ch/2011/12/simcity-updates-december-18/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Simcity updates, November 13</title>
		<link>http://blog.vasile.ch/2011/11/simcity-updates-november-13/</link>
		<comments>http://blog.vasile.ch/2011/11/simcity-updates-november-13/#comments</comments>
		<pubDate>Sun, 13 Nov 2011 20:50:28 +0000</pubDate>
		<dc:creator>vasile</dc:creator>
				<category><![CDATA[Hobbies]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[swisstrains]]></category>

		<guid isPermaLink="false">http://blog.vasile.ch/?p=1274</guid>
		<description><![CDATA[Took me about one month for this release but nevertheless here it is; one of the most important update is that the romanian railways simulator, cfr.webgis.ro uses the same engine that the Swisstrains does. Now you can zoom out to see whole Romania and despite the fact that it has a surface 5x times bigger [...]]]></description>
			<content:encoded><![CDATA[<p>Took me about one month for this release but nevertheless here it is; one of the most important update is that the romanian railways simulator, <a href="http://cfr.webgis.ro" title="cfr.webgis.ro" target="_blank">cfr.webgis.ro</a> uses the same engine that the Swisstrains does. Now you can zoom out to see whole Romania and despite the fact that it has a surface 5x times bigger than Switzerland, the romanian railways network has the same length (~5,000 km) and 10x less(!) trains during one day of operations.<br />
<a href="http://cfr.webgis.ro"><img src="http://blog.vasile.ch/wp-content/uploads/2011/11/ro_network-300x225.png" alt="" width="300" height="225" class="alignnone size-medium wp-image-1275" /></a><br />
<span id="more-1274"></span></p>
<h3>Changes</h3>
<ul>
<li><a href="http://screencast.com/t/rNXXw5GrRN7d" target="_blank">Flyout with vehicle details</a>: if you click on any vehicle(marker) you get detailed information about: name of the vehicle, a link to the provider(<a href="http://fahrplan.sbb.ch/bin/query.exe/dn?" target="_blank">SBB</a>, <a href="http://www.infofer.ro/Itrn.asp?lng=2&amp;cbodata=11/13/2011" target="_blank">CFR</a>), start/terminus stations and the status of the vehicle (if in motion &#8211; the next station and current speed; if in a station &#8211; when is departing that station).</li>
<li>Vehicles with <a href="http://screencast.com/t/5miNkHAsZ" target="_blank">timetables spanning across two days</a> are available now(before they were removed from the map after 23:59:59). In Switzerland there are not too many vehicles running after midnight but in Romania there are a lot, so therefore this feature is now available.</li>
<li>The vectors network is now a <a href="http://screencast.com/t/Qj1sHjbW" target="_blank">directed graph</a>. This means that the polylines used for AB route are not the same ones (reversed) that are used for the BA route. The best example is for the tracks between Brunnen and Flüelen where the vehicles are using two different ways depending on the direction of the train.</li>
<li>Speaking of Flüelen, I added all <a href="http://screencast.com/t/fk1H0TgdFlE" target="_blank">tunnels</a> of the <a href="http://en.wikipedia.org/wiki/Gotthardbahn" target="_blank">Gotthard line</a>, including the famous spiral ones.</li>
<li>The simulation has now a more &#8220;stable&#8221; URL, <a href="http://simcity.vasile.ch/sbb/" target="_blank">http://simcity.vasile.ch/sbb/</a> and in the next release(s) will migrate it to http://www.swisstrains.ch</li>
</ul>
<h3>Stay up-to-date</h3>
<p>If you want to stay in touch with these updates, best will be to subscribe to this project&#8217;s <a href="http://blog.vasile.ch/tag/swisstrains/feed/" title="RSS link" target="_blank">RSS feed</a>.<br />
Use <a href="http://twitter.com/vasile23" title="Twitter">Twitter</a>, <a href="https://plus.google.com/108226495995126683095/about" title="Google+" target="_blank">G+</a> or this space to get in touch with me and suggest further updates. </p>
<p><strong>Thanks for your interest in this project !</strong></p>
<p><a href="http://simcity.vasile.ch/sbb/" target="_blank">http://simcity.vasile.ch/sbb/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vasile.ch/2011/11/simcity-updates-november-13/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Swisstrains updates, October 9</title>
		<link>http://blog.vasile.ch/2011/10/swisstrains-updates-october-9/</link>
		<comments>http://blog.vasile.ch/2011/10/swisstrains-updates-october-9/#comments</comments>
		<pubDate>Sun, 09 Oct 2011 15:15:15 +0000</pubDate>
		<dc:creator>vasile</dc:creator>
				<category><![CDATA[Hobbies]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[swisstrains]]></category>

		<guid isPermaLink="false">http://blog.vasile.ch/?p=1251</guid>
		<description><![CDATA[The most important update from this batch is that the project is available on Github so you can start today and produce your own vehicle simulation based on timetables and digitized tracks. Will come with a later post explaining how I digitized the whole Switzerland railway network(5000+ kms) and how I got(read crawled) the timetables [...]]]></description>
			<content:encoded><![CDATA[<p>The most important update from this batch is that the project is available on <a href="https://github.com/vasile/vehicle-simulator" title="Github" target="_blank">Github</a> so you can start today and produce your own vehicle simulation based on timetables and digitized tracks. Will come with a later post explaining how I digitized the whole Switzerland railway network(5000+ kms) and how I got(read crawled) the timetables data from the SBB website without affecting their uptime. Read the following for the complete list of changes.<br />
<a href="https://github.com/vasile/vehicle-simulator"><img src="http://blog.vasile.ch/wp-content/uploads/2011/10/github_logo.jpeg" alt="" title="Social coding" width="216" height="220" class="alignnone size-full wp-image-1253" /></a><br />
<span id="more-1251"></span></p>
<h3>Changes</h3>
<ul>
<li>The project has new, freshly crawled timetables from <a href="http://fahrplan.sbb.ch/bin/query.exe/dn?" target="_blank">SBB</a>.</li>
<li>The <a href="http://screencast.com/t/viHVe3Zhux" title="Screenshot" target="_blank">railway tunnels</a> are now rendered on the map. Currently only the Zürich area is covered, will add the rest of them in the future updates.</li>
<li>Made some adjustments of the tracks topology and incorporated <a href="http://screencast.com/t/o43b2DR0iibd" title="Screenshot" target="_blank">user requests</a> reporting outdated tracks. Thanks Œlk and please bring me more !</li>
<li>Last but not list the code for creating the simulation is available on <a href="https://github.com/vasile/vehicle-simulator" title="github" target="_blank">Github</a>. Grab it now and start use it in your own projects !</li>
<li>BTW, the railroad network is also available, under Fusion Tables: <a href="http://www.google.com/fusiontables/DataSource?dsrcid=1497331" title="Fusion Tables" target="_blank">tracks</a> and <a href="http://www.google.com/fusiontables/DataSource?dsrcid=1497361" title="Fusion Tables" target="_blank">stations</a>.<br />
Just <strong>Visualize > Map > Export to KML</strong> and you are good to go !</li>
</ul>
<h3>Stay up-to-date</h3>
<p>If you want to stay in touch with these updates, best will be to subscribe to this project&#8217;s <a href="http://blog.vasile.ch/tag/swisstrains/feed/" title="RSS link" target="_blank">RSS feed</a>.<br />
Use <a href="http://twitter.com/vasile23" title="Twitter">Twitter</a>, <a href="https://plus.google.com/108226495995126683095/about" title="Google+" target="_blank">G+</a> or this space to get in touch with me and suggest further updates. </p>
<p><strong>Thanks for your interest in this project !</strong></p>
<p><a href="http://www.vasile.ch/hacks/swisstrains-v2/" target="_blank">http://www.vasile.ch/hacks/swisstrains-v2/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vasile.ch/2011/10/swisstrains-updates-october-9/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Swisstrains v2 kickoff</title>
		<link>http://blog.vasile.ch/2011/09/swisstrains-v2-kickoff/</link>
		<comments>http://blog.vasile.ch/2011/09/swisstrains-v2-kickoff/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 19:11:18 +0000</pubDate>
		<dc:creator>vasile</dc:creator>
				<category><![CDATA[Hobbies]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[swisstrains]]></category>

		<guid isPermaLink="false">http://blog.vasile.ch/?p=1238</guid>
		<description><![CDATA[http://www.vasile.ch/hacks/swisstrains-v2/ There are 4 years since I didn&#8217;t update www.swisstrains.ch project but nevertheless it was good thing because I used this interval to learn more about SBB railway infrastructure + more understanding of their website(which I am still crawling to get the project data from) but it was also an opportunity to polish my programming [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vasile.ch/hacks/swisstrains-v2/" target="_blank">http://www.vasile.ch/hacks/swisstrains-v2/</a></p>
<p>There are 4 years since I didn&#8217;t update <a href="http://www.swisstrains.ch" target="_blank">www.swisstrains.ch</a> project but nevertheless it was good thing because I used this interval to learn more about SBB railway infrastructure + more understanding of their website(which I am still <a href="https://github.com/vasile/R-SBB-timetables-spider" target="_blank">crawling</a> to get the project data from) but it was also an opportunity to polish my programming skills, to learn new technologies and to master various maps APIs; so now it&#8217;s time to move the project to the next level.<br />
The current progress can be seen under <a href="http://www.vasile.ch/hacks/">hacks section</a> of my website and in the following you can see what changed in this version.<br />
						<div class="flickr-gallery image none"><a href="http://www.flickr.com/photos/vasile23/6188131658"><img class="flickr small" title="4 years later" alt="4 years later" src="http://farm7.static.flickr.com/6177/6188131658_133d6349a3_m.jpg" /></a></div>
					<br />
<span id="more-1238"></span></p>
<p>These are from the <a href="https://plus.google.com/108226495995126683095/posts/JULMBxBQFE2" target="_blank">G+ post</a> that I posted shortly after publishing my hack.</p>
<h3>Changes</h3>
<ul>
<li>usage of GMaps JS API v3 + google.maps.geometry.spherical library; before I used v2 + home-made geo helpers</li>
<li>cleaner, less and highly optimized JS code; if you want to have fun just read the (JS) source code of swisstrains.ch </li>
<li>carefully reviewed HTTP headers and started to cache and GZIP always when I had the chance</li>
<li>map interaction improved; there are no more &#8216;Loading&#8217;, &#8216;Zoom beyond level x forbidden&#8217; annoying dialogs. Maps are also styled now (thanks GMaps v3 !) so the unnecessary elements (like roads) are dimmed.</li>
<li>straightforward export process of the SBB trains network line; 4 years ago I used several (commercial) GIS tools, today I am using only open source tools</li>
<li>storing of the railroad network(2000+ polylines and 1800 points=stations) is done using Fusion Tables; before painted them one by one (so 2000 GPolyline objects + 1800+ GMarkers=DIVs)</li>
<li>ability to plot ALL the running vehicles (which are up to 700, depends on time of day) and visualize them in one map. </li>
<li>GMaps API v3 is designed for mobile; guess what, this version runs smoothly and loads pretty fast on iPhone, Android. Tablets too !</li>
</ul>
<h3>Next steps</h3>
<p>Depending on my availability (remember I am doing this in my free time), I will try to:</p>
<ul>
<li>push this project to you via Github</li>
<li>review/port other features of the current swisstrains.ch</li>
<li>update the romanian version http://cfr.webgis.ro</li>
<li>improve the mobile version, maybe try native</li>
</ul>
<p>Make sure you watch this space for the next updates !<br />
Also please add your comments about the project, i.e. if you miss any train lines, vehicles or you want to see new features.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vasile.ch/2011/09/swisstrains-v2-kickoff/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

