gtfs_rail

gtfs_rail

Come see us at our new home: https://gitlab.com/LACMTA/gtfs_rail

Name Last Update
.gitignore Loading commit data...
README.md Loading commit data...
README.tpl Loading commit data...
agency.txt Loading commit data...
calendar.txt Loading commit data...
calendar_dates.txt Loading commit data...
feed_info.tpl Loading commit data...
feed_info.txt Loading commit data...
feed_url.txt Loading commit data...
getzip.py Loading commit data...
gtfs_rail.zip Loading commit data...
requirements.txt Loading commit data...
routes.txt Loading commit data...
shapes.txt Loading commit data...
stop_times.txt Loading commit data...
stops.txt Loading commit data...
trips.txt Loading commit data...

Los Angeles County Metropolitan Transportation Authority's GTFS for Rail.

updated 2017-05-26 01:00:14 PDT America/Los_Angeles

As of May 6th, 2016 The LACMTA 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. The bus-only exports will continue to be provided as large-scale changes to the system occur -- generally once every one or two months. We will NOT continue to maintain the combined service feeds.

Join our developer community at http://developer.metro.net to learn more about using this data.

Link to LACMTA's Bus Data repository: https://gitlab.com/LACMTA/gtfs_bus/


Evergreen link to the gtfs_rail.zip archive: https://gitlab.com/LACMTA/gtfs_rail/raw/master/gtfs_rail.zip

Today's link to the gtfs_rail.zip archive: https://gitlab.com/LACMTA/gtfs_rail/raw/master/gtfs_rail.zip?1495785614.87

zip archive contents

 Length   Creation datetime         Name        
-----------------------------------------------
     173  2017-05-26 00:08   agency.txt         
    1884  2017-05-26 00:08   calendar.txt       
    1087  2017-05-26 00:08   calendar_dates.txt 
     642  2017-05-26 00:08   routes.txt         
  273495  2016-03-16 16:09   shapes.txt         
   33465  2017-02-08 15:08   stops.txt          
11147957  2017-05-26 00:09   stop_times.txt     
  573351  2017-05-26 00:08   trips.txt          
     283  2017-05-25 01:00   feed_info.txt      

Summary of changes

commit a651f01dade6d9554c093c270d34ee1808b095ae
Author: metrodgoodwin <dgoodwin@gmail.com>
Date:   Thu May 25 01:00:18 2017 -0700

    2017-05-25 01:00:18 PDT America/Los_Angeles

 README.md          |    37 +-
 calendar.txt       |    21 +-
 calendar_dates.txt |     1 -
 gtfs_rail.zip      |   Bin 928662 -> 1016685 bytes
 stop_times.txt     | 12559 +++++++++++++++++++++++++++++++++++++++++++++++++++
 trips.txt          |   786 ++++
 6 files changed, 13374 insertions(+), 30 deletions(-)

Subscribing to changes

Get the latest commit ID with Curl

#!/bin/sh

url="https://gitlab.com/LACMTA/gtfs_rail/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_rail/commits/master.atom'
d = feedparser.parse(url)
lastupdate = d['feed']['updated']

print(lastupdate)

See the http://developer.metro.net/the-basics/policies/terms-and-conditions/ page for terms and conditions.