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

    Interface GBFSSystemAlertsV20

    GBFS System Alerts V2.0

    Describes ad-hoc changes to the system.

    interface GBFSSystemAlertsV20 {
        data: {
            alerts: {
                alert_id: string;
                description?: string;
                last_updated?: number;
                region_ids?: string[];
                station_ids?: string[];
                summary: string;
                times?: { end?: number; start: number }[];
                type: "SYSTEM_CLOSURE" | "STATION_CLOSURE" | "STATION_MOVE" | "OTHER";
                url?: string;
            }[];
        };
        last_updated: number;
        ttl: number;
        version: "2.0";
    }
    Index

    Properties

    data: {
        alerts: {
            alert_id: string;
            description?: string;
            last_updated?: number;
            region_ids?: string[];
            station_ids?: string[];
            summary: string;
            times?: { end?: number; start: number }[];
            type: "SYSTEM_CLOSURE" | "STATION_CLOSURE" | "STATION_MOVE" | "OTHER";
            url?: string;
        }[];
    }

    Contains system alerts data.

    Type declaration

    • alerts: {
          alert_id: string;
          description?: string;
          last_updated?: number;
          region_ids?: string[];
          station_ids?: string[];
          summary: string;
          times?: { end?: number; start: number }[];
          type: "SYSTEM_CLOSURE" | "STATION_CLOSURE" | "STATION_MOVE" | "OTHER";
          url?: string;
      }[]

      Array of alerts for the system.

    last_updated: number

    Last time the data in the feed was updated in POSIX time. Minimum: 1450155600

    ttl: number

    Number of seconds before the data in the feed will be updated again (0 if the data should always be refreshed). Minimum: 0

    version: "2.0"

    GBFS version number to which the feed conforms, according to the versioning framework. Const: 2.0