Repolode
iebb

iebb/card-stations

Community-editable CSV databases of station codes, names, lines and coordinates for Japanese IC, T-Union, Korean transit cards and U-money.

Stars
11
Forks
3
Open issues
0
Last commit
6 days ago

What is it?

Card Stations is a set of CSV files listing stations for several transit card systems: Japanese IC cards, China's T-Union, Korean transit cards, and U-money in Ulaanbaatar. Each row holds a station code, name, line, latitude and longitude, and an OpenStreetMap reference, with the same column names used across all card families.

Contributors edit the CSVs directly and open pull requests. A Python build script validates the data and generates SQLite, TSV and JSON outputs for existing transit apps. The repository also includes separate routing CSVs that record line edges, endpoint codes, distances and optional geometry, plus known stop order on each line.

Data keeps the license of its upstream source, while code and original contributions are BSD 3-Clause licensed.

Key features

  • 01Station CSVs cover Japanese IC, T-Union, Korean cards and U-money.
  • 02Every card family uses the same column names.
  • 03A build script validates data and generates SQLite, TSV and JSON outputs.
  • 04Routing CSVs describe line edges, distances and stop order.
  • 05Contributions are made through pull requests against the CSV files.

Use cases

  • Building a transit app that needs station lists for Japanese IC or T-Union cards.
  • Looking up station codes and coordinates for Korean transit cards or U-money.
  • Generating a local SQLite station database from maintained CSV sources.
  • Contributing corrections to transit station data with a reviewable diff.

Quick start

  1. 1

    Check the data files build correctly

    python3 build.py --check
  2. 2

    Run the test suite

    python3 -m unittest discover -s tests -v
  3. 3

    Build the generated SQLite, TSV and JSON outputs

    python3 build.py --output dist

Things to know

  • Generated output files are not stored in Git, so you must run the build yourself.
  • Data files are community-edited and some station records depend on imported sources with their own licenses.

In collections

Topics

#transit#public-transport#open-data#csv#sqlite#openstreetmap#japan-ic#t-union

FAQ

What is card-stations?
Community-editable CSV databases of station codes, names, lines and coordinates for Japanese IC, T-Union, Korean transit cards and U-money. Card Stations is a set of CSV files listing stations for several transit card systems: Japanese IC cards, China's T-Union, Korean transit cards, and U-money in Ulaanbaatar. Each row holds a station code, name, line, latitude and longitude, and an OpenStreetMap reference, with the same column names used across all card families.
Is card-stations free to use? What license does it have?
card-stations is open source under the BSD-3-Clause license. Check the license terms before using it in commercial products.
Is card-stations still maintained?
Actively maintained. The last commit to card-stations was on Nov 1, 2026.
What can I use card-stations for?
Building a transit app that needs station lists for Japanese IC or T-Union cards. Looking up station codes and coordinates for Korean transit cards or U-money. Generating a local SQLite station database from maintained CSV sources. Contributing corrections to transit station data with a reviewable diff.
How do I install card-stations?
Check the data files build correctly: python3 build.py --check Run the test suite: python3 -m unittest discover -s tests -v Build the generated SQLite, TSV and JSON outputs: python3 build.py --output dist
Where can I get card-stations?
The source code and installation instructions are on GitHub: https://github.com/iebb/card-stations

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects

A free, open-source Java power tool, run in your browser, for loading, cleaning, reconciling and enriching messy data.

Data & Analytics#data-wrangling#data-cleaning#reconciliation
12.1K+5 this week2.2KJavaBSD-3-ClauseWell maintainedUpdated 12 hours ago