<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Trevor Gerhardt on Medium]]></title>
        <description><![CDATA[Stories by Trevor Gerhardt on Medium]]></description>
        <link>https://medium.com/@trevorgerhardt?source=rss-535f2e18d81a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*C8en9uOz51CW9PBoby5oPg.jpeg</url>
            <title>Stories by Trevor Gerhardt on Medium</title>
            <link>https://medium.com/@trevorgerhardt?source=rss-535f2e18d81a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 14:24:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@trevorgerhardt/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Upgrading your outreach: Serverless Transit Accessibility with Taui]]></title>
            <link>https://medium.com/conveyal-blog/upgraded-outreach-serverless-transit-accessibility-with-taui-f90d6d51e177?source=rss-535f2e18d81a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f90d6d51e177</guid>
            <category><![CDATA[public-transit]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[transportation]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Trevor Gerhardt]]></dc:creator>
            <pubDate>Thu, 04 Oct 2018 14:31:01 GMT</pubDate>
            <atom:updated>2018-10-04T14:50:46.408Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CZhpO-Pt9UlaldDxA8AIKA.png" /></figure><p><em>This is part three in a series about interactive transit accessibility sites and is more aimed towards web developers. We recommend reading </em><a href="https://blog.conveyal.com/going-for-gold-in-tokyo-with-conveyal-analysis-9139a1cdbb6"><em>one</em></a><em> and </em><a href="https://blog.conveyal.com/shaping-conversations-about-transit-with-interactive-isochrone-mapping-1d6530d6a8a4"><em>two</em></a><em> first.</em></p><p>Taui is Conveyal’s solution for publishing fast interactive transit accessibility websites using high fidelity models that scale to handle any number of users for a fraction of the cost of previous methods. To accomplish this we created a method that allows us to <em>pre-generate all necessary data up front</em> enabling the sites to run <em>without needing an active server for network analysis and routing</em>. Designing these “serverless” websites required many engineering hours, tweaking binary formats, generating many terabytes of data, and crashing our browsers countless times with experimental prototypes. So why go through the trouble?</p><p>Sharing personalized transit accessibility models with all interested parties can be difficult and expensive due to the variable loads servers need to handle and the computational power required to generate them. The required capacity of the server also depends on the geographic size of a region and complexity of the transit system. Lifespan and expected max load for publicly shared and tweeted projects all come with variable costs. For a small team, generating and maintaining an increasing number of public facing sites backed by these number crunching servers became an exceedingly difficult task with future costs impossible to estimate. We realized this after the huge success of our first public interactive site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ryZ14wkVgsowfZrl" /><figcaption>At Princeton Junction, jobs reachable by public transit within 80 minutes: 3,086,000</figcaption></figure><p>In 2014 we worked with the Regional Plan Association, an urban advocacy group focused on the New York metropolitan area, to create our first iteration of these sites to answer the quintessential accessibility question — how does where you live affect the number of jobs you can reach? Through our web application thousands of users were able to see personalized accessibility information that was previously impossible to share. It became one of our most popularly shared projects to date and inspired this <a href="https://www.citylab.com/life/2014/04/mapping-tool-demystifies-link-between-transportation-and-jobs/8986/">CityLab</a> article.</p><p>It was also one of our costliest projects.</p><p>The single beefy high memory AWS EC2 server required to handle the New York metropolitan area cost over <em>$500 per month</em>! After running for over three years (don’t do the math) the tool is no longer online, but the original code can be found <a href="https://github.com/conveyal/rpa-analyst">here</a>.</p><p>This experience, as well as reactions to subsequent tools built by others (e.g. <a href="https://www.busconnects.ie/initiatives/dublin-area-bus-network-redesign">Bus Connects</a> and the <a href="https://totx.sidewalklabs.com/">Toronto Transit Explorer</a>), convinced us of the value of interactive sites. As <a href="https://blog.conveyal.com/shaping-conversations-about-transit-with-interactive-isochrone-mapping-1d6530d6a8a4">we argued previously</a>, such sites allow users to see impacts in dynamic, personalized, and meaningful ways that static printed reports alone cannot achieve. It is clear that demand will continue to grow for sites that quickly and easily display:</p><ul><li>Travel time isochrones for specifically geocoded locations</li><li>Accessibility information to one or more sets of geographic points (or opportunities) like jobs or homes</li><li>Transit routes to a destination along with the estimated travel time and potential alternative paths</li></ul><p>But meeting this growing demand with costly live servers like our initial New York City example would not be practical or sustainable. We needed to develop a consistent way to customize, deploy, and host lower-cost, higher-stability sites for our customers.</p><h3>What is Taui?</h3><p>Taui is our <a href="https://github.com/conveyal/taui">open source</a> solution for creating and publishing interactive transit accessibility websites for any scenario created in <a href="https://www.conveyal.com/analysis/">Conveyal Analysis</a>.</p><p>What sets Taui apart is its combination of speed, customizability, ease of deployment, a low running cost, and scalability to handle any number of concurrent users. The main technical innovation areas enabling this are in the custom binary data formats, generation and storage of the data, and the website deployment. These differences are important when comparing it to similar features found in Conveyal Analysis itself.</p><p>With each deployment we generate many gigabytes of data up front — hundreds in larger scenarios. Origins and destinations are represented on high resolution regular grids rather than with administrative boundaries or arbitrary polygons like many other transportation analysis systems.</p><p>The five distinct datasets we generate are:</p><ol><li>Analysis manifest</li><li>Transit network metadata</li><li>Travel times (per origin)</li><li>Transit routes (per origin)</li><li>Opportunities</li></ol><p>Each is necessary in being able to create the full user experience but each is also distinct in its creation and use.</p><h4>Analysis Manifest</h4><p>The manifest file describes the parameters used to create the analysis. This includes standard navigation details like walk speed and modes used and also internal parameters like the exact version of our transit analysis engine (<a href="https://github.com/conveyal/r5">R5</a>) and the dimensions and location of the data.</p><h4>Transit Network Metadata</h4><p>The transit models we use are generally based on one or more sets of GTFS schedule data which can be quite a large set of CSV files depending on the system. These files contain data that is absolutely necessary to generate transit models. But by the time Taui utilizes the base data we only need to use a much smaller subset of that data:</p><ul><li>Routes and their colors, shapes, and names</li><li>Patterns and which route they are in</li><li>Stops and their locations</li></ul><p>We store these by their IDs so that they can be looked up easily later. This format is a simple JSON format and is used in other applications of ours that also utilize the <a href="https://github.com/conveyal/transitive.js/">Transitive.js</a> library to display stylized routes.</p><h4>Travel Times</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*6HEYoUmLEye3ZCgj8S5Brw.jpeg" /><figcaption>Travel time isochrones generated in Taui</figcaption></figure><p>For each point in our grid (tailored for the geographic area) we find the travel time to every other point in the grid. We store this in a custom binary format with a header indicating the dimensions of the grid. The times are integers in grid order which enables geographically close points, and therefore points likely to have similar or close times, to be consecutive. We then <a href="https://en.wikipedia.org/wiki/Delta_encoding">delta encode</a> the values. This results in a lot of “0”s and allows for compression algorithms to compress them even further.</p><p>Each point’s travel time grid is stored separately in a “bucket” on Amazon’s Simple Storage Service (S3) and therefore can be retrieved individually. With knowledge of the place we stored the bucket and the grid dimensions it’s “easy” to translate a user friendly location (like an address) to a point that we can lookup in the bucket and retrieve the travel times.</p><p>An example conversion from an address to a usable index:</p><ol><li>A user enters an address: <em>1301 U St NW, Washington, DC</em></li><li>Address is geocoded into a geographic point: <em>[longitude, latitude]</em></li><li>Using the grid dimensions found in the manifest file we can bin the geographic point into corresponding grid location: <em>[x, y]</em></li><li>And then retrieve the data directly from the webpage without going through a server with an HTTP GET of the URL: <a href="/service/about:blank"><em>https://{cloudfrontId}.cloudfront.net/{projectId}/{x + y * grid.width}_times.dat</em></a></li></ol><p>We also have the ability to store multiple travel times per point in a grid. For example, this enables storing the 25th, median, and 75th percentile travel times for each point to help characterize the variability created by transit schedules (a topic explained more in detail <a href="https://blog.conveyal.com/exploring-and-visualizing-variation-in-accessibility-measures-5247aa49043c">here</a>). But since our default is to only use the median travel time we rearranged a previous version of encoding and storage order to contain only one percentile in each block and add additional percentiles onto the end of the file in a new block.</p><h4>Transit Routes</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oWDpCE55ozyQ-h2yebRXmw.png" /><figcaption>Routes, stops, shapes, names, and colors</figcaption></figure><p>In the process of generating a travel time from an origin we find hundreds of possible paths used to arrive at the destination. We then select a few representative paths near the chosen percentile. These paths are stored using the board stop ID, pattern ID, and alight stop ID used for each segment of the journey. Using those IDs we can look up the stop and pattern information (geographic location, name, route shape) from the GTFS data file. With the full stop and pattern information we can show the route on the map and a route summary in the side panel. This data is also stored in a custom binary format to maximize compression for storage and delivery speed.</p><p>Transit paths data can be retrieved similarly to travel times data, just replace step five URL with: <a href="/service/about:blank"><em>https://{cloudfrontId}.cloudfront.net/{projectId}/{index}_paths.dat</em></a><em>.</em></p><h4>Opportunities</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4P_nxPQLaxUydUjyQclu6Q.png" /><figcaption>Residents in Toronto, ON displayed as opportunities via a dot map in a Taui deployment</figcaption></figure><p>Typically we look at job types or population demographic data — like the datasets that can be found in the Longitudinal Employer-Household Dynamics Origin-Destination Employment Statistics (LODES) maintained by the US Census Bureau (and can be found <a href="https://lehd.ces.census.gov/data/">here</a>) — but anything that is a value tied to a geographic point can potentially be used as an opportunity data set.</p><p>Usually, we’ll upload <a href="https://en.wikipedia.org/wiki/Shapefile">Shapefiles</a> or CSVs to Conveyal Analysis which converts them automatically into our regular grid format.</p><h3>Serverless Website</h3><p>One of the main distinguishing features of Taui is that there is no active server running. Typically a website like this would have a server that could deliver the website data — HTML, CSS, and JavaScript — and a server running to calculate paths and travel times via the transit and street network on demand using <a href="http://www.opentripplanner.org/">OpenTripPlanner</a> or <a href="https://github.com/conveyal/r5">R5</a>. Since we’ve already pre-generated all the the paths and travel times we’ve removed the need for the transit modeling server. Next we can customize the style, text and features before generating the specific website data and deploy it in a way that it’s attached to the transit data.</p><p>To do this we include a set of four easily editable <a href="http://yaml.org/">YAML</a> configuration files. These files are typical when using our internal tool <a href="https://github.com/conveyal/mastarm">Mastarm</a>. The env.yml file requires you to set a Mapbox token for geocoding and <a href="https://leafletjs.com/reference-1.3.4.html#tilelayer">Leaflet</a> tile URL for customizing which base map you want to see. The messages.yml file allows customizing all text shown on the screen and is intended to be easily translated into non-English languages. The store.yml file allows customizing which transit data sets you want to use, where you want the default origin point to be, what opportunity datasets you want to use and whether or not they should be displayed as a dot map with <a href="https://github.com/conveyal/gridualizer">Gridualizer</a>, and if you want to see the action log and transit data customization panel on the screen.</p><p>Lastly, the settings.yml file is used for customizing build and deployment data like which S3 bucket to use, where the built JavaScript and CSS files should be put, and which AWS CloudFront distribution the cached files live under.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X-ohCfd3CKSmgFyguarBlg.png" /><figcaption>Output from a deployment in the console. It can also be configured to post to a <a href="https://slack.com/">Slack</a> channel.</figcaption></figure><p>Once these files are customized specifically to your deployment and you have an S3 bucket ready for a static site deployment (see Amazon’s own guide <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html">here</a>) you can easily run, build, and deploy right from the command line. We have a default HTML file that can be placed alongside the JavaScript and CSS that’s generated from deploy. Lastly we use AWS’s Route53 domain name service to point a named URL (<a href="https://taui.conveyal.com/">https://taui.conveyal.com</a>) to the CloudFront distribution (<a href="https://dtxp4r6unhi7.cloudfront.net/">https://dtxp4r6unhi7.cloudfront.net</a>).</p><h3>From URL to Isochrones</h3><p>Once the transit data has been generated and the website has been deployed, it is ready to be accessed by a modern web browser. An example URL — <a href="https://taui.conveyal.com/boston-2018-07/#centerCoordinates=-71.0635057836771%2C42.36132113316221&amp;start=122%20Cambridge%20Street%2C%20Boston%2C%20Massachusetts%2002114%2C%20United%20States&amp;startCoordinate=-71.0635057836771%2C42.36132113316221&amp;end=99%20Townsend%20Street%2C%20Dorchester%2C%20Massachusetts%2002121%2C%20United%20States&amp;endCoordinate=-71.09046936035158%2C42.3179394544685">https://taui.conveyal.com/boston-2018-07/#centerCoordinates=-71.0635057836771%2C42.36132113316221&amp;start=122%20Cambridge%20Street%2C%20Boston%2C%20Massachusetts%2002114%2C%20United%20States&amp;startCoordinate=-71.0635057836771%2C42.36132113316221&amp;end=99%20Townsend%20Street%2C%20Dorchester%2C%20Massachusetts%2002121%2C%20United%20States&amp;endCoordinate=-71.09046936035158%2C42.3179394544685</a> — points to a subfolder of our Taui production site which contains a specialized deployment for Boston. It also contains data in the <a href="https://en.wikipedia.org/wiki/Query_string">query string</a> which shows a preset origin and destination.</p><p>Let’s use this example with two scenarios in Boston to run through each step needed to display isochrones on your screen:</p><ol><li>The URL is converted into an IP address via our <a href="https://en.wikipedia.org/wiki/Domain_Name_System">DNS</a> provider turning taui.conveyal.com/… into 36.86.63.182/…</li><li>That IP address points to a <a href="https://en.wikipedia.org/wiki/Content_delivery_network">CDN</a> which retrieves its data from an AWS S3 bucket containing our static site data.</li><li>The path of the URL — boston-2018-07 — indicates to the AWS S3 static site to load the index.html file that is located in our S3 bucket at s3://taui.conveyal.com/boston-2018-7/index.html.</li><li>The HTML file is downloaded and parsed by the browser. The browser then downloads the JavaScript and CSS files indicated in the HTML file that are specific to this deployment in the same path.</li><li>The CSS file is parsed and its styles are applied while the JavaScript file is parsed and begins loading the application.</li><li>Next the main <a href="https://reactjs.org/">React</a> application component is mounted (or added) to the page. During the mounting process, data that is compiled into the website — like map styles, default location, and site specific text — are reflected directly in the site.</li><li>After the main application is mounted the analysis manifest, opportunity datasets, and transit network metadata load from an S3 bucket where they are stored (which also sits behind a CDN for faster global delivery). Each transit network being analyzed by the instance gets its own manifest and network metadata file.</li><li>Next, because the query string of the URL contains a starting address — 122 Cambridge Street, Boston, Massachusetts — the travel times and transit routes for that address are fetched from S3 using the mechanisms explained above by first converting it to geographic coordinates, then a lookup index using the grid dimensions.</li><li>The binary travel time data is de-delta coded and parsed into a travel time surface that can generate isochrones (using <a href="https://github.com/conveyal/jsolines">jsolines</a>) in minute increments up to the maximum travel time specified in the manifest. By default the 60th minute isochrone is generated and displayed on the map — a blue one for late afternoon travel, and an orange one for late night travel. This travel time surface is also used to generate the accessibility count — 193,511 homes for afternoon and 168,951 at night.</li><li>Next, the binary transit routes are parsed into a format that we can use to look up routes to each possible destination. Because the query string also contains a destination address — 99 Towsend St, Dorchester, Massachusetts — we can geocode and find the index similar to the origin and look up the fastest routes used to get to the destination.</li><li>The transit route data for each network is correlated with its corresponding transit network information to lookup route names (in this case Orange Line), route colors (also orange), and the shape of the route and location of the stops used for displaying on the map.</li><li>And voilà! A transit accessibility comparison map created without an active running server.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5_C6nt-e08cjOSStsjnUvg.png" /><figcaption>End result of following the url</figcaption></figure><p>There’s a lot of technical aspects that we could individually dive into further. Our hope is that the overarching technical capabilities and innovations of Taui have been shown and that those translate into improved outreach for our customers.</p><p>Are you are interested in having your own transit accessibility data published on the web? Check out our <a href="https://www.conveyal.com/analysis/">website</a> for more details and <a href="/service/mailto:analysis@conveyal.com">get in touch</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f90d6d51e177" width="1" height="1" alt=""><hr><p><a href="https://medium.com/conveyal-blog/upgraded-outreach-serverless-transit-accessibility-with-taui-f90d6d51e177">Upgrading your outreach: Serverless Transit Accessibility with Taui</a> was originally published in <a href="https://medium.com/conveyal-blog">Conveyal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Support for Bikeshare Trips Added to Modeify]]></title>
            <link>https://medium.com/conveyal-blog/support-for-bikeshare-trips-added-to-modeify-d876376a9615?source=rss-535f2e18d81a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d876376a9615</guid>
            <category><![CDATA[bike-sharing]]></category>
            <category><![CDATA[commuting]]></category>
            <dc:creator><![CDATA[Trevor Gerhardt]]></dc:creator>
            <pubDate>Thu, 14 May 2015 12:00:36 GMT</pubDate>
            <atom:updated>2016-09-27T18:06:32.421Z</atom:updated>
            <content:encoded><![CDATA[<h4>Support for Bikeshare Trips Added to Modeify</h4><p><em>A version of this post originally appeared at </em><a href="http://mobilitylab.org/2015/05/14/d-c-regions-first-capital-bikeshare-to-transit-app-unveiled-by-arlington-county/"><em>Mobility Lab</em></a><em>.</em></p><p>Along with bike-to-transit and drive-to-transit, people traveling throughout the Washington D.C. region — for the first time — can now search for bikeshare-to-transit directions as part of their trip planning. This is because the <a href="http://modeify.co/">Modeify</a> commuter outreach platform now includes bikeshare as a supported mode.</p><p>To see if your commute would benefit from <a href="https://www.capitalbikeshare.com/">Capital Bikeshare</a>, start by going to <a href="http://carfreeatoz.com/planner">CarFreeAtoZ</a>, the Modeify-based trip planner for the Washington, DC area. Follow the guide to submit your home and work address to see your results.</p><p>A great example of a trip enabled by bikeshare is my regular commute from the office in D.C. to the Arlington County Building next to the Courthouse Metro.</p><figure><img alt="intro_trip" src="https://cdn-images-1.medium.com/max/1024/0*lRUD4wxFmGY9RPk6.png" /></figure><p>Without a bike, the best options are a two transfer Green/Yellow to Red to Orange/Silver lines trip or a looping Green/Yellow to Orange/Silver line trip that adds four extra stops. With a Capital Bikeshare membership, I can skip transfers or a longer wait and bike directly to Metro Center.</p><p>On the CarFreeAtoZ map, you’ll see all of the routes found laid out together for visual comparison. You’ll see red dashed lines for biking, gray dashed lines for driving, blue dotted lines for walking, and bus and Metro lines colored according to their brand.</p><p>In the panel below the addresses, you’ll see a card for each route we found. Hovering over the card will highlight the route on the map. To view the itinerary of an individual route, just expand the card by clicking “details.”</p><p>Chris Hamilton of Arlington County Commuter Services sees this integration as a needed addition to current trip planners in the region.</p><p>“Capital Bikeshare was a game changer for the region when it debuted as a transit option almost five years ago. People now make more one-way trip decisions as a result. CarFreeAtoZ.com allows people to visualize this, compare it to other trip combinations and keep the option handy for when needed. We know this improvement to CarFreeAtoZ.com is going to be a game changer too.”</p><p>These recent changes should illuminate new ways of traveling around the city and show how Capital Bikeshare can expand your personal transportation network by adding a new mode of transportation for the beginning and the end of your journeys.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d876376a9615" width="1" height="1" alt=""><hr><p><a href="https://medium.com/conveyal-blog/support-for-bikeshare-trips-added-to-modeify-d876376a9615">Support for Bikeshare Trips Added to Modeify</a> was originally published in <a href="https://medium.com/conveyal-blog">Conveyal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How We’re Optimizing Your Commute]]></title>
            <link>https://medium.com/conveyal-blog/how-were-optimizing-your-commute-154cc19d3ffa?source=rss-535f2e18d81a------2</link>
            <guid isPermaLink="false">https://medium.com/p/154cc19d3ffa</guid>
            <category><![CDATA[commuting]]></category>
            <dc:creator><![CDATA[Trevor Gerhardt]]></dc:creator>
            <pubDate>Tue, 17 Mar 2015 12:00:59 GMT</pubDate>
            <atom:updated>2016-09-27T18:20:33.923Z</atom:updated>
            <content:encoded><![CDATA[<h4>How We’re Optimizing Your Commute</h4><p><em>cross posted from </em><a href="http://mobilitylab.org/2015/03/10/3-ways-multi-modal-travel-is-tricky-for-app-developers/"><em>Mobility Lab</em></a></p><p>Working to refine all the complicated algorithms of travel is vital to improving commuter experiences.</p><p>When searching for a route with <a href="http://modeify.co/">Modeify</a> and <a href="http://opentripplanner.org/">OpenTripPlanner</a>, we use complex <a href="https://medium.com/conveyal-blog/what-is-profile-routing-786597838b86">profile routing</a> algorithms to objectively find the best options across all available modes, which can lead to an enormous amount of results. To get the best results in the quickest amount of time requires a lot of pruning and optimizing.</p><p>In <a href="http://www.carfreeatoz.com/">CarFreeAtoZ</a> we take our search a step further and use subjective values to rank each option based on more than just time. This allows us to tailor options to each commuter as well as the full community in aggregate, instead of just showing the fastest possible trip by default. It also creates a split where we determine which routes to prune by objective measures and which to score and re-rank with subjective ones.</p><p>From this, a few categories of problems arise which cannot be easily solved by well-defined programming logic and need to be determined on a case-by-case basis. Let’s take a look into the <a href="https://github.com/conveyal/modeify/labels/profile%20results">cases we’ve been investigating recently</a>.</p><h4>1. <a href="https://github.com/conveyal/modeify/issues/163">Bike-to-transit pushing out walk-to-transit</a></h4><p>A major feature that sets OpenTripPlanner’s results apart from traditional journey planners — like Google Maps based planners CityMapper and RideScout — is the inclusion of biking and driving as access modes for transit trips. For drivers this helps discover the best park-and-ride lots to leave your car at in the morning and hop on a commuter bus or train. For bikers this helps cut out slower legs of a journey and remove transfers that can increase the wait time of a trip.</p><p>Where we run into problems is when the fastest walk-to-transit trips aren’t found because they are pruned for being too slow compared to the bike- or drive-access journeys. It turns out that both access modes can provide options that are faster than just walking, especially if your journey starts far from a bus stop or Metro station.</p><figure><img alt="Complicated Route" src="https://cdn-images-1.medium.com/max/1024/0*G7BSptL-gjUbDL7M.png" /></figure><p>To resolve this issue, we separate out the query by access mode and re-combine the results before sending them to the client. If we select every access mode this triples the number of results we get back. It’s then necessary to filter each journey based on a set of criteria specific to the mode.</p><p>For example, we don’t want to show a walk-to-transit journey with over twenty-five minutes of walking to get to the Metro when biking or driving is a viable option. Similarly, we don’t want to show a bike-to-transit journey that could be done with a five-minute walk.</p><h4>2. <a href="https://github.com/conveyal/modeify/issues/159">Longer transit wait times than ride times</a></h4><p>Real-time transit applications are essential for getting around cities these days. Missing a bus or train could result in long wait times in places where schedules are infrequent. The question is: should we just filter out the transit leg and tell you to walk if the wait time is significantly greater than the ride time on average?</p><p>A five-minute Metro ride will take you a lot further than you could walk in twice the amount of time. It could also take you across a river, through the densest part of the city, or keep you out of the rain. But if a bus runs every 60 minutes and the walk would take 15 minutes, it’s easy to see that filtering might be useful.</p><p>More commonly, what we end up seeing is an extremely short bus ride (two or three stops) showing up in results that would technically be faster than walking if you caught it perfectly. Luckily, that usually coincides with a similar result that takes just the walking route. In CarFreeAtoZ, we add penalties for the extra cost and annoyance of a transfer. This usually pushes results with unnecessary short bus trips to the bottom of the options list.</p><h4>3. <a href="https://github.com/conveyal/modeify/issues/161">When to hide drive-to-transit results</a></h4><p>Showing drive-to-transit results is imperative for any commuters who live in a place without walking or biking access to bus stops or Metro stations. In Maryland, the Maryland Transit Administration’s commuter buses are essential for the thousands of commuters coming into greater D.C. every day. Before now, the only way to find the most appropriate bus would be a manual lookup of driving directions and reading through MTA’s schedule. Now you can get the results all in one search, which we love and think is a really attractive feature of CarFreeAtoZ.</p><p>One of the problems we’ve seen is when a drive-to-transit route has the majority of the trip being the drive itself. It’s not as straightforward as just making sure the majority of the trip is transit based. The common reasons of saving money, gaining productive time, and avoiding the stress of traffic may still apply in those trips. A last-mile transit or bus leg could avoid the worst areas of traffic and save money on high downtown parking fees.</p><figure><img alt="Another complicated route" src="https://cdn-images-1.medium.com/max/1024/0*PDK7M8IDFGQmpexX.png" /></figure><p>We don’t have a simple solution for filtering out these types of drive-to-transit results. But with continual updates to our parking and pricing data we will be able to bubble up other factors that contribute to this decision that we can then use to rank the options and possibly filter them out in the future.</p><p>The endless combinations provided by multi-modal transit provide new filtering and optimization challenges every day. See a route that isn’t the best or have a suggestion to improve our filtering? Send us an email at <a href="/service/mailto:feedback@carfreeatoz.com">feedback@carfreeatoz.com</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=154cc19d3ffa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/conveyal-blog/how-were-optimizing-your-commute-154cc19d3ffa">How We’re Optimizing Your Commute</a> was originally published in <a href="https://medium.com/conveyal-blog">Conveyal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scoring Your Commute]]></title>
            <link>https://medium.com/conveyal-blog/scoring-your-commute-837d6e6cc83?source=rss-535f2e18d81a------2</link>
            <guid isPermaLink="false">https://medium.com/p/837d6e6cc83</guid>
            <category><![CDATA[public-transit]]></category>
            <category><![CDATA[commuting]]></category>
            <dc:creator><![CDATA[Trevor Gerhardt]]></dc:creator>
            <pubDate>Thu, 04 Sep 2014 12:00:03 GMT</pubDate>
            <atom:updated>2016-09-27T18:41:39.661Z</atom:updated>
            <content:encoded><![CDATA[<h4>Scoring Your Commute</h4><p><em>cross posted from </em><a href="http://mobilitylab.org/2014/09/04/scoring-your-commute-driving-can-be-a-very-poor-choice/"><em>Mobility Lab</em></a></p><p>While living in the Washington D.C. region the past two years, I’ve been fortunate enough to always live right next to Metrorail (U Street, Pentagon City, and now NoMA) while working from home half of the time and out of 1776 (near McPherson Square and Farragut North) the other half.</p><figure><img alt="Screenshot" src="https://cdn-images-1.medium.com/max/900/0*pZmZ7jKGH44e5dov.jpg" /></figure><p>This has allowed me to take advantage of the extensive Metrorail network but it has also greatly shaped which parts of town I’m likely to visit.</p><p>Large gaps around town seem daunting to get to — only accessible by transferring from Metrorail to a long bus ride, adding a lengthy walk on either end, or just taking an Uber.</p><p>A few months ago, I (finally) started biking and it’s startling how much it has changed my perception about the best mode of transportation to get to certain parts of the city. One of the reasons why I had not biked in the past was a lack of a clear comparison to other forms of transportation that I was currently using.</p><h4>A Commute Profile</h4><p>Conveyal has been working with <a href="http://www.commuterpage.com/">Arlington County Commuter Services</a> to build tools that pinpoint and enhance the best commuting options for the county’s residents and workers. “What’s the fastest way for me to get from A to B right now?” is what journey-planning tools solve with smartphone applications and integration with real-time transportation information. The commute planner we are building takes a more holistic approach — using factors like cost, calories burned, and number of transfers needed to make the trip.</p><p>To determine these factors and weights, we began by taking a look at multiple sets of journey profiles that are generated by <a href="http://opentripplanner.org/">OpenTripPlanner</a>. Each profile contains the fastest biking, driving, and walking directions along with three to four public transportation options. (Bike-to-transit and drive-to-transit coming soon!) These profiles are based on transit data given a specific window of time. This allows us to include frequency and average wait times in the transit options.</p><h4>Analyzing a route</h4><p>The first profile that I analyzed was my current (short) daily commute. I wanted to reverse engineer the factors and weights from these results because of my strong familiarity with the routes. I know that <a href="http://www.carfreeatoz.com/planner?from=1160%201st%20St%20NE%2C%20Washington%2C%20District%20of%20Columbia%2C%20USA&amp;to=1133%2015th%20St%20NW%2C%20Washington%2C%20District%20of%20Columbia%2C%20USA&amp;modes=BICYCLE%2CBUS%2CTRAINISH%2CWALK%2CCAR&amp;start_time=7&amp;end_time=9&amp;days=M%E2%80%94F">1160 First Street NE to 1133 15th Street NW </a>is an ideal biking route with westward lanes on K Street for commuting in to work and slow eastward traffic on M Street heading home. There is also heavy traffic during normal commute hours (we currently don’t have the data to model car traffic in D.C.). I can regularly beat cars riding along similar routes, taking between 10 to 15 minutes to ride each way.</p><p>This route is just under two miles long, which means, on a nice day, a walk with my headphones in listening to a podcast or making a few calls can be very pleasant and would take between 25 and 30 minutes. Biking and walking these distances have the added benefit of burning significant calories, but not being far enough to be considered tiring — right in the sweet spot.</p><p>The most direct Metrorail trip is to take the Red line from NoMA to Farragut North, which, along with walking and waiting, takes 26 minutes on average. This also costs $2.10 each way during peak hours.</p><p>As a driver, I would be leaving from a garage and parking in a garage, which adds 2–3 minutes of time on each end and significant monthly or daily costs for parking. This parking cost data is available, but incomplete, so at Conveyal we use estimates based on location to determine the parking cost, in this case $10 per day at work. We can also add in the IRS mileage reimbursement as an estimate of average cost of car ownership — $1.07 each way.</p><h4>Scoring the options</h4><p>After using our <a href="http://www.carfreeatoz.com/">commute planner</a> and my current knowledge of the commute, I knew what I’d want the rankings for this route to come out to be. By default, they were ranked by just the time, similar to real-time journey planning results:</p><ol><li>Drive — 7 minutes</li><li>Bike — 13 minutes</li><li>Red Line — 26 minutes</li><li>Walk — 29 minutes</li></ol><p>Ideally, these options would be ranked by a score that encompasses all of the factors noted above.</p><p>To score, we start with how many minutes the route takes. This allows us to easily filter out routes that are way too roundabout or improper for the area. We can now convert all the other factors into minutes to add or subtract from the commute. To start, for each dollar we spend, let’s add five minutes to the commute.</p><p>Five minutes? If we think of a commute as a trip that’s taken 500 times per year (two times per day for 250 work days), then $1 more per trip is $500 more per year! Five minutes might not be the final number when we compare commutes across the region, but it’s a good start. This will add 55.35(!) minutes to the driving route ($1.07 cost of the drive and $10 for parking) and 10.5 minutes to the transit route ($2.10 fare).</p><p>Next, let’s factor in calories. Assuming a sedentary lifestyle in D.C. isn’t absurd. A large population of residents in the area work in office jobs and sit six-plus hours per day. There’s a level of calorie burning that is going to have a positive effect on our lives that does not adversely affect our day-to-day energy levels and will actually improve health over time. For now, we’ll use a simple factor, but in the future, we’ll use a scaling function to show the diminishing return and eventual negative value (for the average commuter) of too many calories burned on a commute.</p><p>I found a simple estimate that we burn 4.4 calories per minute of brisk walking and 10 calories per minute of easy biking. These lead to 130 calories burned on the bike route and 157 calories burned while walking. The yearly totals come out to be 65,000 calories burned biking and 78,500 calories burned walking! That’s the equivalent of running almost 20 marathons each year. (Calculations using my body weight and a five-hour marathon pace.)</p><p>For this commute, I’m going to value every 100 calories at three minutes of time. Biking would take off 3.9 minutes, and walking would take off 4.71 minutes.</p><h4>Results:</h4><ol><li>Bike — 13 minutes, 9.1 score</li><li>Walk — 29 minutes, 24.29 score</li><li>Red Line — 26 minutes, 36.5 score</li><li>Drive — 7 minutes, 62.35 score</li></ol><p>Our commute planner also factors in CO2 emissions or offsets, pain of a transfer, time to park a bike, and time to park a car. Some are cut-and-dry factors like the ones demonstrated above and others are functions that vary depending on the input.</p><p>This detailed analysis and comparison is what we are trying to convey in a simple and quick manner with our commute planner. We want to make it easy to come to the same conclusion that I did without ever having gone to or from a destination before, or to supplement your current knowledge of routes with new information and simple analysis that could easily enhance your commutes in the future. The next step is to analyze thousands of more commutes across the Washington D.C. region and aggregate statistics about how each factor affects a given commute.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=837d6e6cc83" width="1" height="1" alt=""><hr><p><a href="https://medium.com/conveyal-blog/scoring-your-commute-837d6e6cc83">Scoring Your Commute</a> was originally published in <a href="https://medium.com/conveyal-blog">Conveyal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Commute Planner for Arlington County]]></title>
            <link>https://medium.com/conveyal-blog/building-a-commute-planner-for-arlington-county-58b1932a6d86?source=rss-535f2e18d81a------2</link>
            <guid isPermaLink="false">https://medium.com/p/58b1932a6d86</guid>
            <category><![CDATA[public-transit]]></category>
            <category><![CDATA[commuting]]></category>
            <dc:creator><![CDATA[Trevor Gerhardt]]></dc:creator>
            <pubDate>Tue, 15 Apr 2014 12:00:30 GMT</pubDate>
            <atom:updated>2016-09-27T18:50:41.534Z</atom:updated>
            <content:encoded><![CDATA[<h4>Building a Commute Planner for Arlington County</h4><p><em>cross posted from </em><a href="http://mobilitylab.org/2014/04/15/arlington-county-building-high-tech-commute-planning-software/"><em>Mobility Lab</em></a></p><p>Does the world need another commute planning app? It may surprise you to know that we think the answer is a resounding “yes.” The <a href="http://mobilitylab.org/tech/transit-tech-initiative/">Arlington Transit Tech Initiative</a> is creating commute-planning software to provide personalized information for travelers making trips throughout the Washington D.C. region. We’re developing this as <a href="http://modeify.co/">Modeify</a>, an open-source project with the <a href="https://github.com/conveyal/modeify">code available on GitHub</a>.</p><figure><img alt="Workflow" src="https://cdn-images-1.medium.com/max/1024/0*ax2qpOmFaSPfVHVY.png" /></figure><p>The commute planner:</p><ul><li>will assist commuters in understanding their best available options</li><li>is intended to replace current analog outreach methods (for example, static metro and bus maps), and</li><li>will establish a feedback loop to help <a href="http://www.commuterpage.com/pages/about/arlington-county-commuter-services/">Arlington County Commuter Services (ACCS)</a>recognize the needs and desires of its customers — the people traveling in and around Arlington.</li></ul><p>Our as-yet-unnamed tool will differ from on-demand apps currently on the market in one significant way. The current crop of apps specialize in displaying trip information between points A and B over a specific route, using a specific mode of transportation, at a specific time. Our commute planner uses <a href="http://opentripplanner.org/">OpenTripPlanner</a> to calculate trip information between points A and B over different routes, taking into account different travel times, over different transportation modes (including walking and biking trip times as well as public-transit wait and transfer times) to determine which option is best on a daily basis, not just right now.</p><figure><img alt="Transitive.js" src="https://cdn-images-1.medium.com/max/761/0*hWWnDiUJMh_1-N1d.png" /></figure><p>One of the biggest challenges of the project will be helping commuters to intuitively understand available travel options. Our initial commute-planning output, shown above, is intuitive, robust, and dynamically generated. We will be performing ongoing testing of the user interface and solicitation of feedback from a diverse set of commuters, which we understand will be imperative to the success of the project.</p><p>To deliver a succinct overview of options, we have been developing an open-source JavaScript library called <a href="https://github.com/conveyal/transitive.js">Transitive.js</a> to dynamically generate and display schematic maps that contain only relevant information about a journey. Along with the map, we will display detailed steps required to make the journeys shown and a comparison of the alternative options. (Detailed technical information about Transitive.js will be available here soon.)</p><figure><img alt="Manager" src="https://cdn-images-1.medium.com/max/1024/0*OMDoOb1s0qaQexHl.png" /></figure><p>We are also exploring methods of communicating with residents to proactively share personalized travel information. Currently, when new residents and companies move to Arlington, ACCS mails information packets about commutes, generated by hand. As part of this project, we’ll make this information accessible directly from the commute planner to anyone who lives or works in Arlington by simply entering their home and work addresses. We are also building interfaces to let companies provide outreach directly to their employees and collect aggregate information about staff travel needs.</p><p>Our work doesn’t end after the commute results are displayed. Commuter feedback will be collected about how our tool affected commuting choices, to teach lessons regarding how best to influence more sustainable and healthy travel choices. In the future, we will integrate with apps to allow commuters to track their commutes, which will in turn help improve this information.</p><p>It’s exciting to help ACCS make it easier for Arlingtonians to choose transit, biking, and walking over single-passenger vehicles. And we commend Arlington County for demanding that its travelers have access to quality, clear, and up-to-date travel plans.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58b1932a6d86" width="1" height="1" alt=""><hr><p><a href="https://medium.com/conveyal-blog/building-a-commute-planner-for-arlington-county-58b1932a6d86">Building a Commute Planner for Arlington County</a> was originally published in <a href="https://medium.com/conveyal-blog">Conveyal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>