New DEC16 Metro Standalone Google Transit (Metro GTFS_BUS)
This is the General Transit Feed of Metro’s (LACMTA’s) complete Bus service for the period beginning December 11, 2016 and ending June, 2017.
This version was updated with the 2017 Dodger Stadium Express (as per published Dodger Schedule).
This feed contains NO Rail service (this is now available by a nightly update). This feed DOES contain all appropriate bus service, including Metro’s Dodger Stadium Express service. This update adds the Dodger Postseason Game schedules for Metro's Dodger Stadium Express.
As of May 6th, 2016 LA Metro is now publishing our Bus and Rail Services in separate Google Transit Exports ONLY. As a customer service, and to allow us to update these files more frequently, we have split these files up. The new rail-only export will be updated Daily (generally Tuesday – Saturday mornings), to allow us to send out more timely information and to allow our users to capture all temporary rail service changes that may occur on a daily basis.
Metro will provide bus-only exports with large-scale changes to the system: approximately once every one or two months. We will NOT continue to maintain the combined service feeds.
Rollin Baker Metro Los Angeles Spatial Analysis Project Leader Service Planning, Scheduling & Performance Analysis
24 March 2017
gtfs_bus.zip Archive contents
Archive: gtfs_bus.zip Length Date Time Name --------- ---------- ----- ---- 163 12-01-2014 16:37 agency.txt 3896 11-15-2016 11:29 calendar.txt 9861 03-24-2017 10:43 calendar_dates.txt 282 03-24-2017 16:29 feed_info.txt 6557 03-24-2017 10:42 routes.txt 33731737 03-24-2017 10:45 shapes.txt 138935886 03-24-2017 12:16 stop_times.txt 817084 03-24-2017 12:14 stops.txt 2258870 03-24-2017 12:17 trips.txt --------- ------- 175764336 9 files
See the latest commits date times:
Get the latest commit ID with Curl
#!/bin/sh url="https://gitlab.com/LACMTA/gtfs_bus/commits/master.atom" curl --silent "$url" | grep -E '(title>|updated>)' | sed -n '4,$p' | sed -e 's/<title>//' -e 's/<\/title>//' -e 's/<updated>/ /' -e 's/<\/updated>//' | head -2 | fmt # returns: # 2015-12-31T13:09:36Z # new info from SPA and instructions on preparing the archive
Get the latest commit ID with Python
#!/bin/env python import feedparser url = 'https://gitlab.com/LACMTA/gtfs_bus/commits/master.atom' d = feedparser.parse(url) lastupdate = d['feed']['updated'] print lastupdate
Join our developer community at http://developer.metro.net to learn more about using this data.
See the http://developer.metro.net/the-basics/policies/terms-and-conditions/ page for terms and conditions.