<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <id>https://gtfstohtml.com/blog</id>
    <title>GTFS-to-HTML Blog</title>
    <updated>2024-09-09T00:00:00.000Z</updated>
    <generator>https://github.com/jpmonette/feed</generator>
    <link rel="alternate" href="https://gtfstohtml.com/blog"/>
    <subtitle>GTFS-to-HTML Blog</subtitle>
    <icon>https://gtfstohtml.com/img/favicon.ico</icon>
    <entry>
        <title type="html"><![CDATA[New GTFS-to-HTML as a Service]]></title>
        <id>https://gtfstohtml.com/blog/new_gtfs_to_html_as_a_service</id>
        <link href="https://gtfstohtml.com/blog/new_gtfs_to_html_as_a_service"/>
        <updated>2024-09-09T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[A new version of run.gtfstohtml.com is live. This is an easy way to use GTFS-to-HTML entirely from your browser without needing to download any code or use the command line.]]></summary>
        <content type="html"><![CDATA[<p>A new version of <a href="https://run.gtfstohtml.com/" target="_blank" rel="noopener noreferrer" class="">run.gtfstohtml.com</a> is live. This is an easy way to use GTFS-to-HTML entirely from your browser without needing to download any code or use the command line.</p>
<p>GTFS-to-HTML as a Service allows uploading a GTFS file or specifying a URL to a GTFS file. Almost all configuration options are supported, with the big exception being no support for <a href="https://gtfstohtml.com/docs/custom-templates" target="_blank" rel="noopener noreferrer" class="">Custom Templates</a>.</p>
<p>The code to run GTFS-to-HTML as a service is <a href="https://github.com/BlinkTagInc/gtfs-to-html-service" target="_blank" rel="noopener noreferrer" class="">available on github</a>.</p>]]></content>
        <author>
            <name>Brendan Nee</name>
            <uri>https://github.com/brendannee</uri>
        </author>
        <category label="csv" term="csv"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[New Feature - GTFS timetables as CSV]]></title>
        <id>https://gtfstohtml.com/blog/timetables_as_csv</id>
        <link href="https://gtfstohtml.com/blog/timetables_as_csv"/>
        <updated>2021-11-06T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[GTFS-to-HTML Version 2.3.0 adds support for exporting timetables as CSV. Setting the outputFormat configuration to csv will generate CSV files instead of HTML. One CSV file per timetable will be generated.]]></summary>
        <content type="html"><![CDATA[<p>GTFS-to-HTML Version 2.3.0 adds support for exporting timetables as CSV. Setting the <a href="https://gtfstohtml.com/docs/configuration#outputformat" target="_blank" rel="noopener noreferrer" class="">outputFormat</a> configuration to <code>csv</code> will generate CSV files instead of HTML. One CSV file per timetable will be generated.</p>
<p>An example of a CSV timetable:</p>
<div class="language-csv codeBlockContainer_fnpi theme-code-block" style="--prism-color:#bfc7d5;--prism-background-color:#292d3e"><div class="codeBlockContent_krsW"><pre tabindex="0" class="prism-code language-csv codeBlock_GiCi thin-scrollbar" style="color:#bfc7d5;background-color:#292d3e"><code class="codeBlockLines_xeWF"><div class="token-line" style="color:#bfc7d5"><span class="token plain">,San Francisco Ferry Building,Vallejo Ferry Terminal,Mare Island Ferry Terminal</span><br></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">Run #1,10:30am,11:30am,</span><br></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">Run #2,11:30am,12:30pm,</span><br></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">Run #3,1:50pm,2:50pm,</span><br></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">Run #4,2:50pm,3:50pm,</span><br></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">Run #5,4:10pm,5:10pm,5:25pm</span><br></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">Run #6,5:10pm,6:10pm,6:25pm</span><br></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">Run #7,6:30pm,7:30pm,</span><br></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">Run #8,8:50pm,9:50pm,10:05pm</span><br></div></code></pre></div></div>
<p>Timetables in CSV respect the <code>orientation</code> set in <code>timetables.txt</code> or <code>defaultOrientation</code> in <code>config.json</code>, they can be either <code>horizontal</code> or <code>vertical</code>.</p>]]></content>
        <author>
            <name>Brendan Nee</name>
            <uri>https://github.com/brendannee</uri>
        </author>
        <category label="csv" term="csv"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Version 1.0.0]]></title>
        <id>https://gtfstohtml.com/blog/version_1</id>
        <link href="https://gtfstohtml.com/blog/version_1"/>
        <updated>2020-08-20T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Nine years after first publishing node-gtfs, GTFS-to-HTML is ready for version 1.0.]]></summary>
        <content type="html"><![CDATA[<p>Nine years after <a href="https://github.com/BlinkTagInc/node-gtfs/commit/90b1d3a0e93972b0e8754ca1103b25a8cebdfd7e" target="_blank" rel="noopener noreferrer" class="">first publishing <code>node-gtfs</code></a>, GTFS-to-HTML is ready for version 1.0.</p>
<p>Version 1.0 of GTFS-to-HTML switches away from using MongoDB to using SQLite3 for the underlying database. It uses Version 2.0 of <a href="https://github.com/BlinkTagInc/node-gtfs" target="_blank" rel="noopener noreferrer" class="">node-gtfs</a>, which made a similar switch in database used.</p>
<p>SQLite makes it easier to query GTFS data in SQL format if needed instead of using the <a href="https://github.com/BlinkTagInc/node-gtfs#query-methods" target="_blank" rel="noopener noreferrer" class="">built-in query methods</a>. See <a href="https://github.com/BlinkTagInc/gtfs-to-html/blob/edaa6327999e8163f79015f2e7b037b9e7344a67/lib/utils.js#L360" target="_blank" rel="noopener noreferrer" class="">this query</a> as a example of selecting calendar dates while excluding specific service_ids.</p>
<p>The switch to SQLite also resulted in a 66% reduction in HTML generation times.</p>
<p>The breaking changes in GTFS-to-HTML 1.0.0:</p>
<ul>
<li class=""><code>config.json</code> accepts a <code>sqlitePath</code> instead of a <code>mongoUrl</code>.</li>
<li class=""><code>route_color</code> and <code>route_text_color</code> in exported geoJSON now have a # prepended to the hex color. So <code>#45AA00</code> instead of <code>45AA00</code>.</li>
<li class="">The <code>dataExpireAfterSeconds</code> config option has been removed.</li>
<li class="">The default view pug template in <code>views/default</code> has some small improvements. If you are using your own custom template, you may want to include some of these.</li>
</ul>
<p><a href="https://github.com/BlinkTagInc/gtfs-to-geojson" target="_blank" rel="noopener noreferrer" class=""><code>GTFS-to-GeoJSON</code></a> and <a href="https://github.com/BlinkTagInc/gtfs-to-chart" target="_blank" rel="noopener noreferrer" class=""><code>GTFS-to-Chart</code></a> both have similar breaking changes.</p>
<p>If you are using node-gtfs in your own project, all query methods have breaking changes in version 2.0.0 - see <a href="https://github.com/BlinkTagInc/node-gtfs" target="_blank" rel="noopener noreferrer" class="">the documentation</a>.</p>
<p>Please send feedback on issues you encounter or ideas for improvement by opening a <a href="https://github.com/BlinkTagInc/gtfs-to-html/issues" target="_blank" rel="noopener noreferrer" class="">Github issue</a>. Pull requests are welcome.</p>]]></content>
        <author>
            <name>Brendan Nee</name>
            <uri>https://github.com/brendannee</uri>
        </author>
        <category label="sqlite" term="sqlite"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[New Documentation]]></title>
        <id>https://gtfstohtml.com/blog/new_documentation</id>
        <link href="https://gtfstohtml.com/blog/new_documentation"/>
        <updated>2020-07-07T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[GTFS-to-HTML's documentation now has a better layout with more room for explanation and examples. A full documentation website at https://gtfstohtml.com has been set up.]]></summary>
        <content type="html"><![CDATA[<p>GTFS-to-HTML's documentation now has a better layout with more room for explanation and examples. A full documentation website at <a href="https://gtfstohtml.com/" target="_blank" rel="noopener noreferrer" class="">https://gtfstohtml.com</a> has been set up.</p>
<p>Thanks to <a href="https://docusaurus.io/" target="_blank" rel="noopener noreferrer" class="">Docusaurus</a> for making documentation websites easy to generate.</p>]]></content>
        <author>
            <name>Brendan Nee</name>
            <uri>https://github.com/brendannee</uri>
        </author>
        <category label="docusaurus" term="docusaurus"/>
    </entry>
</feed>