APTA Infrastructure Database - Rail Lines

Rail-line records from the APTA Infrastructure Database. One row is a rail line or guideway entry for a transit organization, with organization identifiers and line-level infrastructure attributes; the profiled table contains 110 rows across North American transit organizations.

american-public-transportation-association-infrastructure-rail-lines·31 columns·22 KB·APTA statistical publication reuse terms / site copyright notice·updated 24d ago

Schema

new_2018_datastring
last_data_reported_yearstring
organization_namestring
organization_short_namestring
citystring
statestring
countrystring
member_idint64
mode_namestring
connecting_modesstring
linesint64
year_original_line_openedint64
miles_elevateddouble
miles_on_surfacedouble
miles_undergrounddouble
miles_single_trackdouble
miles_double_trackdouble
miles_triple_trackdouble
miles_quadruple_trackdouble
miles_quintuple_trackdouble
miles_sextuple_trackdouble
miles_of_mainline_passenger_trackdouble
miles_of_yard_and_non_mainline_trackdouble
crossings_with_gatesint64
crossings_without_gatesint64
longest_platform_feetint64
maximum_speed_m_p_hint64
average_speed_mphint64
shortest_headway_min_secstring
start_of_operations_hours_minutes_military_timestring
end_of_operations_hours_minutes_military_timestring

Get this dataset on your machine

subsets sync --bundle medium clones the mid-size tiers as queryable local tables — use --bundle large for the widest tier

pip install subsetsio
subsets sync --bundle small # or medium, or large
subsets serve # search + SQL at http://localhost:8080

Free and open — the data syncs straight from the public bucket, and search + SQL run entirely on your machine. See docs →

Query it locally

Full docs →
Bash
subsets serve   # local API on http://localhost:8080
curl -s -X POST "http://localhost:8080/query" \
  -H "Content-Type: application/json" \
  -d '{"sql": "SELECT * FROM \"american-public-transportation-association-infrastructure-rail-lines\" LIMIT 5"}'

No account, no API key — the data syncs straight from bundles.subsets.io and every query runs on your machine. See the local API reference.