• Posts
  • RSS
  • ◂◂RSS
  • Contact

  • MBTA Service Frequency

    December 12th, 2009
    mbta, programming, tech, transport  [html]
    The MBTA publishes a transit feed primarily it can appear in google transit. The feed is publicly available, however, which means I can play with it. There is a lot of data, enough that I can't get GoogleTransitDataFeed to load it all to memory. I want to look more at gtdf and possibly use it in the future, but for now I'm just happy to read the csv files in the feed. I'm still thinking about how to display the data in interesting ways, but an easy first one is to show service frequency at each stop:
    There is a really large svg (which I made with svgfig (I only used a tiny fraction of svgfig's capabilities, it's really powerful, especially for plotting graphs)) linked behind the png. It might be big enough to crash your browser.

    The grey lines are the shapes the mbta publishes in shapes.txt. They appear to be the commuter rail and rapid transit lines, including the silver line. The yellow dots are all the stops in stops.txt with an area proportional to the number of times they're listed in stop_times.txt, which I think corresponds to their service frequency. For single pixel stops this does not hold because all stops visited at least once get at least one pixel. I've cropped the image to leave out the ten most distant stops in each direction. The map is projected by calling the gps coordinates screen coordinates (after translation and scaling) which probably introduces some distortion. I merged stops that were really close.

    Comment via: facebook

    Recent posts on blogs I like:

    It's ok to feed stray cats

    Before we had kids, Jeff and I fostered a couple of cats. One had feline AIDS and was very skinny. Despite our frugal grocery budget of the time, I put olive oil on her food, determined to get her healthier. I knew that stray cats were not a top global pr…

    via Giving Gladly May 15, 2021

    Collections: Teaching Paradox, Europa Universalis IV, Part III: Europa Provincalis

    This is the third part of our series (I, II) examining the historical assumptions of Paradox Interactive’s grand strategy computer game set in the early modern period, Europa Universalis IV (which is in turn the start of a yet larger series looking at sev…

    via A Collection of Unmitigated Pedantry May 14, 2021

    Randal O’Toole Gets High-Speed Rail Wrong

    Now that there’s decent chance of US investment in rail, Randal O’Toole is resurrecting his takes from the early Obama era, warning that high-speed rail is a multi-trillion dollar money sink. It’s not a good analysis, and in particular it gets the reality…

    via Pedestrian Observations May 12, 2021

    more     (via openring)


  • Posts
  • RSS
  • ◂◂RSS
  • Contact