gis-tools-ts - v0.6.0
    Preparing search index...

    Class GTFSScheduleReader

    GTFS Schedule Reader

    Schedule class that pulls in all of the GTFS schedule files and parses them into a single object implements the FeatureIterator interface.

    import { buildGTFSSchedule } from 'gis-tools-ts';

    const schedule = await buildGTFSSchedule(gzipData);

    for await (const feature of schedule) {
    console.log(feature);
    }

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • TODO: Add proeprties from other files like "color" TODO: All features should be parsed as VectorGeometry Yields all of the shapes

      Returns AsyncGenerator<
          | VectorFeature<
              Record<string, unknown>,
              Properties,
              GTFSShapeProperties,
              VectorLineStringGeometry,
          >
          | VectorFeature<
              Record<string, unknown>,
              Properties,
              GTFSLocationsProperties,
              VectorPolygonGeometry<Properties> | VectorMultiPolygonGeometry<Properties>,
          >
          | VectorFeature<
              undefined,
              Properties,
              GTFSStopProperties,
              VectorPointGeometry,
          >,
      >

      an iterator that contains shapes, stops, location data, and routes