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

    Interface GBFSV20

    GBFS V2.0

    Auto-discovery file that links to all of the other files published by the system.

    interface GBFSV20 {
        data: {
            [languageCode: string]: {
                feeds: {
                    name:
                        | "gbfs"
                        | "gbfs_versions"
                        | "system_information"
                        | "station_information"
                        | "station_status"
                        | "free_bike_status"
                        | "system_hours"
                        | "system_alerts"
                        | "system_calendar"
                        | "system_regions"
                        | "system_pricing_plans";
                    url: string;
                }[];
            };
        };
        last_updated: number;
        ttl: number;
        version: "2.0";
    }
    Index

    Properties

    data: {
        [languageCode: string]: {
            feeds: {
                name:
                    | "gbfs"
                    | "gbfs_versions"
                    | "system_information"
                    | "station_information"
                    | "station_status"
                    | "free_bike_status"
                    | "system_hours"
                    | "system_alerts"
                    | "system_calendar"
                    | "system_regions"
                    | "system_pricing_plans";
                url: string;
            }[];
        };
    }

    Response data in the form of name:value pairs.

    Type declaration

    • [languageCode: string]: {
          feeds: {
              name:
                  | "gbfs"
                  | "gbfs_versions"
                  | "system_information"
                  | "station_information"
                  | "station_status"
                  | "free_bike_status"
                  | "system_hours"
                  | "system_alerts"
                  | "system_calendar"
                  | "system_regions"
                  | "system_pricing_plans";
              url: string;
          }[];
      }

      An object containing feeds keyed by language code (e.g., "en", "en-US").

      Pattern: ^[a-z]{2,3}(-[A-Z]{2})?$

      Type declaration

      • feeds: {
            name:
                | "gbfs"
                | "gbfs_versions"
                | "system_information"
                | "station_information"
                | "station_status"
                | "free_bike_status"
                | "system_hours"
                | "system_alerts"
                | "system_calendar"
                | "system_regions"
                | "system_pricing_plans";
            url: string;
        }[]

        An array of all of the feeds that are published by the auto-discovery file.

    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 (added in v1.1). Const: 2.0