UNPKG

s2-tools

Version:

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

47 lines 1.94 kB
import type { Pbf as Protobuf } from '../..'; /** * Determines whether the current fetch is incremental. Currently, * DIFFERENTIAL mode is unsupported and behavior is unspecified for feeds * that use this mode. There are discussions on the GTFS Realtime mailing * list around fully specifying the behavior of DIFFERENTIAL mode and the * documentation will be updated when those discussions are finalized. */ export declare enum Incrementality { FULL_DATASET = 0, DIFFERENTIAL = 1 } /** Metadata about a feed, included in feed messages. */ export declare class GTFSRealtimeHeader { #private; /** * Version of the feed specification. * The current version is 2.0. Valid versions are "2.0", "1.0". */ gtfsRealtimeVersion: string; /** * Determines whether the current fetch is incremental. Currently, * DIFFERENTIAL mode is unsupported and behavior is unspecified for feeds * that use this mode. There are discussions on the GTFS Realtime mailing * list around fully specifying the behavior of DIFFERENTIAL mode and the * documentation will be updated when those discussions are finalized. */ incrementality: Incrementality; /** * This timestamp identifies the moment when the content of this feed has been * created (in server time). In POSIX time (i.e., number of seconds since * January 1st 1970 00:00:00 UTC). */ timestamp?: Date; /** * String that matches the feed_info.feed_version from the GTFS feed that the real * time data is based on. Consumers can use this to identify which GTFS feed is * currently active or when a new one is available to download. */ feedVersion?: string; /** * @param pbf - The Protobuf object to read from * @param end - The end position of the message in the buffer */ constructor(pbf: Protobuf, end: number); } //# sourceMappingURL=header.d.ts.map