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

    Interface GBFSFreeBikeStatusV20

    Free Bike Status V2.0

    Describes the vehicles that are not at a station and are available for rent.

    interface GBFSFreeBikeStatusV20 {
        data: {
            bikes: {
                bike_id: string;
                is_disabled: boolean;
                is_reserved: boolean;
                lat: number;
                lon: number;
                rental_uris?: { android?: string; ios?: string; web?: string };
            }[];
        };
        last_updated: number;
        ttl: number;
        version: "2.0";
    }
    Index

    Properties

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

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

    Type declaration

    • bikes: {
          bike_id: string;
          is_disabled: boolean;
          is_reserved: boolean;
          lat: number;
          lon: number;
          rental_uris?: { android?: string; ios?: string; web?: 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.0"

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