UNPKG

s2-tools

Version:

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

170 lines 5.43 kB
/** * # GBFS Schema V1.1 OR GBFS Schema V1.0 * Auto-discovery file that links to all of the other files published by the system. * * ## Links * - [GBFS Specification V1.1](https://github.com/MobilityData/gbfs/blob/v1.1/gbfs.md#gbfsjson) * - [GBFS Specification V1.0](https://github.com/MobilityData/gbfs/blob/v1.0/gbfs.md#gbfsjson) */ export type GBFSV1 = GBFSV11 | GBFSV10; /** * # GBFS Schema V1.1 * Auto-discovery file that links to all of the other files published by the system. * * ## Links * - [GBFS Specification V1.1](https://github.com/MobilityData/gbfs/blob/v1.1/gbfs.md#gbfsjson) */ export declare const gbfsSchemaV11: { $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; patternProperties: { '^[a-z]{2,3}(-[A-Z]{2})?$': { type: string; properties: { feeds: { description: string; type: string; items: { type: string; properties: { name: { description: string; type: string; enum: string[]; }; url: { description: string; type: string; format: string; }; }; required: string[]; }; }; }; required: string[]; }; }; minProperties: number; additionalProperties: boolean; }; }; required: string[]; }; /** * GBFS Schema V1.1 Interface */ export interface GBFSV11 { /** 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'; /** Response data in the form of name:value pairs. */ data: { [locale: string]: { feeds: Array<{ 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; }>; }; }; } /** * # GBFS Schema V1.0 * Auto-discovery file that links to all of the other files published by the system. * * ## Links * - [GBFS Specification V1.0](https://github.com/MobilityData/gbfs/blob/v1.0/gbfs.md#gbfsjson) */ export declare const gbfsSchemaV10: { $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; patternProperties: { '^[a-zA-Z]{2}$': { type: string; properties: { feeds: { description: string; type: string; items: { type: string; properties: { name: { type: string; }; url: { type: string; }; }; required: string[]; }; }; }; required: string[]; }; }; minProperties: number; additionalProperties: boolean; }; }; required: string[]; }; /** * GBFS Schema V1.0 Interface */ export interface GBFSV10 { /** 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; /** Response data in the form of name:value pairs. */ data: { [locale: string]: { feeds: Array<{ name: string; url: string; }>; }; }; } //# sourceMappingURL=gbfs.d.ts.map