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

    Interface GBFSFreeBikeStatusV21

    Free Bike Status V2.1

    Describes the vehicles that are available for rent (as of v2.1-RC2).

    interface GBFSFreeBikeStatusV21 {
        data: {
            bikes: {
                bike_id: string;
                current_range_meters?: number;
                is_disabled: boolean;
                is_reserved: boolean;
                last_reported?: number;
                lat?: number;
                lon?: number;
                rental_uris?: { android?: string; ios?: string; web?: string };
                station_id?: string;
                vehicle_type_id?: string;
            }[];
        };
        last_updated: number;
        ttl: number;
        version: "2.1";
    }
    Index

    Properties

    data: {
        bikes: {
            bike_id: string;
            current_range_meters?: number;
            is_disabled: boolean;
            is_reserved: boolean;
            last_reported?: number;
            lat?: number;
            lon?: number;
            rental_uris?: { android?: string; ios?: string; web?: string };
            station_id?: string;
            vehicle_type_id?: string;
        }[];
    }

    Contains the list of bikes published by the auto-discovery file.

    Type declaration

    • bikes: {
          bike_id: string;
          current_range_meters?: number;
          is_disabled: boolean;
          is_reserved: boolean;
          last_reported?: number;
          lat?: number;
          lon?: number;
          rental_uris?: { android?: string; ios?: string; web?: string };
          station_id?: string;
          vehicle_type_id?: string;
      }[]

      An array of all bikes available for rent.

    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.1"

    GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1). Const: 2.1