CLI tool to convert SSIM flight schedule data to GTFS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin update tests Sep 3, 2018
resource Added reference airport and airline data Sep 4, 2018
src move to new home, add build info to readme, add stop_code to stops Sep 17, 2018
test Added reference airport and airline data Sep 4, 2018
.gitignore store the file streams in memory (until a better solution arrives), a… Aug 29, 2018
.npmignore update ignore Sep 3, 2018
.travis.yml
README.md correct formatting Sep 17, 2018
package-lock.json
package.json
tsconfig.json initial commit Aug 27, 2018
tslint.json

README.md

ssim2gtfs

Travis npm David

ssim2gtfs converts IATA SSIM flight schedule data into a GTFS zip containing trips, stops, stop times and calendars.

Usage

ssim2gtfs requires node 10.x or above

ssim2gtfs is a CLI tool that can be installed via NPM:

npm install -g ssim2gtfs

It can be run by specifying the input and output files as CLI arguments:

ssim2gtfs flights.ssim gtfs.zip

Or using unix pipes:

cat flights.ssim | ssim2gtfs > gtfs.zip

Notes

The GTFS does not support many of the fields in the SSIM standard so there is a lot of information that is not retained.

  • An extended route type of 1100 (air service) is used
  • All timezones are converted to UTC
  • Stop data is derived from ourairports.com
  • Agency data is derived from openflights.org/

Contributing

Issues and PRs are very welcome. To get the project set up run

git clone git@github.com:planarnetwork/ssim2gtfs
npm install --dev
npm test

If you would like to send a pull request please write your contribution in TypeScript and if possible, add a test.

License

This software is licensed under GNU GPLv3.