πŸ“˜ Validated against the IATA SSIM, March 2012 edition. Have access to a newer edition? Open an issue and we'll incorporate the diff.
Skip to content

iata-ssimParsers for IATA SSIM data formats

Zero-dependency, type-safe TypeScript parsers.

Quick example ​

ts
import { parseScheduleDataSet } from 'iata-ssim/sds'

const dataSet = parseScheduleDataSet(text)

console.log(dataSet.carriers[0].carrier.airlineDesignator)
// β†’ "XX" (2-letter IATA carrier code)

console.log(dataSet.carriers[0].flightLegs.length)
// β†’ 2451

const leg = dataSet.carriers[0].flightLegs[0]
console.log(`${leg.airlineDesignator}${leg.flightNumber} ${leg.departure.station}β†’${leg.arrival.station}`)
// → "XX0100 AAA→BBB"
console.log(leg.daysOfOperation)
// β†’ [1, 2, 3, 4, 5]

Terminology ​

SSIM covers nine chapters. "SSIM file" is industry shorthand for Chapter 7 β€” Schedule Data Set (SDS), the only format this library currently parses. Other chapters describe distinct telex-style messages (SSM, ASM, SCR) β€” see What is SDS? for the full picture and the Roadmap for upcoming support.