UNPKG

s2-tools

Version:

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

222 lines 7.54 kB
/** * # Free Bike Status Schema V1.1 OR Free Bike Status Schema V1.0 * Describes the vehicles that are available for rent. * * ## Links * - [GBFS Specification V1.1](https://github.com/MobilityData/gbfs/blob/v1.1/gbfs.md#free_bike_statusjson) * - [GBFS Specification V1.0](https://github.com/MobilityData/gbfs/blob/v1.0/gbfs.md#free_bike_statusjson) */ export type GBFSFreeBikeStatusV1 = GBFSFreeBikeStatusV11 | GBFSFreeBikeStatusV10; /** * # Free Bike Status Schema V1.1 * Describes the vehicles that are not at a station and are available for rent. * * ## Links * - [GBFS Specification V1.1](https://github.com/MobilityData/gbfs/blob/v1.1/gbfs.md#free_bike_statusjson) */ export declare const gbfsFreeBikeStatusSchemaV11: { $schema: string; $id: string; description: string; type: string; properties: { last_updated: { description: string; type: string; minimum: number; }; ttl: { description: string; type: string; minimum: number; }; version: { description: string; type: string; const: string; }; data: { description: string; type: string; properties: { bikes: { type: string; items: { type: string; properties: { bike_id: { description: string; type: string; }; lat: { description: string; type: string; minimum: number; maximum: number; }; lon: { description: string; type: string; minimum: number; maximum: number; }; is_reserved: { description: string; type: string; minimum: number; maximum: number; }; is_disabled: { description: string; type: string; minimum: number; maximum: number; }; rental_uris: { description: string; type: string; properties: { android: { description: string; type: string; format: string; }; ios: { description: string; type: string; format: string; }; web: { description: string; type: string; format: string; }; }; }; }; required: string[]; }; }; }; required: string[]; }; }; required: string[]; }; /** * Free Bike Status Schema V1.1 Interface */ export interface GBFSFreeBikeStatusV11 { /** Last time the data in the feed was updated in POSIX time. */ last_updated: number; /** Number of seconds before the data in the feed will be updated again. */ ttl: number; /** GBFS version number (1.1). */ version: '1.1'; /** Data containing an array of bikes. */ data: { bikes: Array<{ bike_id: string; lat: number; lon: number; is_reserved: 0 | 1; is_disabled: 0 | 1; rental_uris?: { android?: string; ios?: string; web?: string; }; }>; }; } /** * # Free Bike Status Schema V1.0 * Describes the vehicles that are available for rent. * * ## Links * - [GBFS Specification V1.0](https://github.com/MobilityData/gbfs/blob/v1.0/gbfs.md#free_bike_statusjson) */ export declare const gbfsFreeBikeStatusSchemaV10: { $schema: string; $id: string; description: string; type: string; properties: { last_updated: { description: string; type: string; minimum: number; maximum: number; }; ttl: { description: string; type: string; minimum: number; }; data: { description: string; type: string; properties: { bikes: { type: string; items: { type: string; properties: { bike_id: { description: string; type: string; }; lat: { description: string; type: string; minimum: number; maximum: number; }; lon: { description: string; type: string; minimum: number; maximum: number; }; is_reserved: { description: string; oneOf: { type: string; }[]; }; is_disabled: { description: string; oneOf: { type: string; }[]; }; }; required: string[]; }; }; }; required: string[]; }; }; required: string[]; }; /** * Free Bike Status Schema V1.0 Interface */ export interface GBFSFreeBikeStatusV10 { /** Last time the data in the feed was updated in POSIX time. */ last_updated: number; /** Number of seconds before the data in the feed will be updated again. */ ttl: number; /** Data containing an array of bikes. */ data: { bikes: Array<{ bike_id: string; lat: number; lon: number; is_reserved: boolean | number; is_disabled: boolean | number; }>; }; } //# sourceMappingURL=freeBikeStatus.d.ts.map