UNPKG

s2-tools

Version:

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

285 lines 10.5 kB
/** * # GBFS Station Information Schema V1.1 OR GBFS Station Information Schema V1.0 * List of all stations, their capacities, and locations. REQUIRED for systems utilizing docks. * * ## Links * - [GBFS Specification V1.1](https://github.com/MobilityData/gbfs/blob/v1.1/gbfs.md#station_informationjson) * - [GBFS Specification V1.0](https://github.com/MobilityData/gbfs/blob/v1.0/gbfs.md#station_informationjson) */ export type GBFSStationInformationV1 = GBFSStationInformationV11 | GBFSStationInformationV10; /** * # GBFS Station Information Schema V1.1 * List of all stations, their capacities, and locations. REQUIRED for systems utilizing docks. * * ## Links * - [GBFS Specification V1.1](https://github.com/MobilityData/gbfs/blob/v1.1/gbfs.md#station_informationjson) */ export declare const gbfsStationInformationSchemaV11: { $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: { stations: { type: string; items: { type: string; properties: { station_id: { description: string; type: string; }; name: { description: string; type: string; }; short_name: { description: string; type: string; }; lat: { description: string; type: string; minimum: number; maximum: number; }; lon: { description: string; type: string; minimum: number; maximum: number; }; address: { description: string; type: string; }; cross_street: { description: string; type: string; }; region_id: { description: string; type: string; }; post_code: { description: string; type: string; }; rental_methods: { description: string; type: string; items: { type: string; enum: string[]; }; minItems: number; }; capacity: { description: string; type: string; minimum: 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[]; }; /** * GBFS Station Information Schema V1.1 Interface */ export interface GBFSStationInformationV11 { /** 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 stations. */ data: { stations: Array<{ station_id: string; name: string; short_name?: string; lat: number; lon: number; address?: string; cross_street?: string; region_id?: string; post_code?: string; rental_methods?: Array<'KEY' | 'CREDITCARD' | 'PAYPASS' | 'APPLEPAY' | 'ANDROIDPAY' | 'TRANSITCARD' | 'ACCOUNTNUMBER' | 'PHONE'>; capacity?: number; rental_uris?: { android?: string; ios?: string; web?: string; }; }>; }; } /** * # GBFS Station Information Schema V1.0 * List of all stations, their capacities, and locations. REQUIRED for systems utilizing docks. * * ## Links * - [GBFS Specification V1.0](https://github.com/MobilityData/gbfs/blob/v1.0/gbfs.md#station_informationjson) */ export declare const gbfsStationInformationSchemaV10: { $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: { stations: { type: string; items: { type: string; properties: { station_id: { description: string; type: string; }; name: { description: string; type: string; }; short_name: { description: string; type: string; }; lat: { description: string; type: string; minimum: number; maximum: number; }; lon: { description: string; type: string; minimum: number; maximum: number; }; address: { description: string; type: string; }; cross_street: { description: string; type: string; }; region_id: { description: string; type: string; }; post_code: { description: string; type: string; }; rental_methods: { description: string; type: string; items: { type: string; enum: string[]; }; }; capacity: { description: string; type: string; minimum: number; }; }; required: string[]; }; }; }; required: string[]; }; }; required: string[]; }; /** * GBFS Station Information Schema V1.0 Interface */ export interface GBFSStationInformationV10 { /** 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 stations. */ data: { stations: Array<{ station_id: string; name: string; short_name?: string; lat: number; lon: number; address?: string; cross_street?: string; region_id?: string; post_code?: string; rental_methods?: Array<'KEY' | 'CREDITCARD' | 'PAYPASS' | 'APPLEPAY' | 'ANDROIDPAY' | 'TRANSITCARD' | 'ACCOUNTNUMBER' | 'PHONE'>; capacity?: number; }>; }; } //# sourceMappingURL=stationInformation.d.ts.map