<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Code on Platform Notes</title><link>https://quire.themes.dev/tags/code/</link><description>Recent content in Code on Platform Notes</description><generator>Hugo</generator><language>en-GB</language><lastBuildDate>Wed, 28 Oct 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://quire.themes.dev/tags/code/index.xml" rel="self" type="application/rss+xml"/><item><title>Reading a GTFS timetable in 40 lines of Python</title><link>https://quire.themes.dev/posts/reading-gtfs-timetables/</link><pubDate>Wed, 28 Oct 2026 00:00:00 +0000</pubDate><guid>https://quire.themes.dev/posts/reading-gtfs-timetables/</guid><description>&lt;p&gt;Journey planners are good at the fastest connection and bad at everything else. I want to ask different questions: which trains leave Ventimiglia after six in the evening, or which sleepers stop at a station I have never heard of. Most operators publish their whole timetable as &lt;a href="https://gtfs.org/"&gt;GTFS&lt;/a&gt;, a zip of plain CSV files, and you can answer those questions yourself.&lt;/p&gt;&#10;&lt;h2 id="what-is-in-the-zip"&gt;What is in the zip&lt;a class="heading-anchor" href="#what-is-in-the-zip" aria-label="Link to the section What is in the zip"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A GTFS feed is a handful of text files. Four of them matter here:&lt;/p&gt;</description></item><item><title>A fare watcher that lives on a shelf</title><link>https://quire.themes.dev/posts/a-fare-watcher-on-a-shelf/</link><pubDate>Thu, 15 Oct 2026 00:00:00 +0000</pubDate><guid>https://quire.themes.dev/posts/a-fare-watcher-on-a-shelf/</guid><description>&lt;p&gt;Sleeper fares are not fixed. On the routes I watch, the price of a single berth moved eleven times in September, by as much as €70. Checking by hand every morning is a waste of a morning, so a small computer on my bookshelf does it for me.&lt;/p&gt;&#10;&lt;h2 id="what-it-does"&gt;What it does&lt;a class="heading-anchor" href="#what-it-does" aria-label="Link to the section What it does"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Once a day it asks the operator&amp;rsquo;s booking site for the cheapest berth on the dates I care about, writes the price to a file, and sends me a message only when the price is lower than anything it has seen before. One message, not a feed.&lt;/p&gt;</description></item></channel></rss>