UNPKG

s2-tools

Version:

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

216 lines 6.82 kB
/** * # GBFS Versions Schema V3.1-RC & V3.0 * Lists all feed endpoints published according to versions of the GBFS documentation. (added in v1.1) * * ## Links * - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v3.1-RC/gbfs.md#gbfs_versionsjson) * - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v3.0/gbfs.md#gbfs_versionsjson) */ export type GBFSVersionsV3 = GBFSVersionsV31RC | GBFSVersionsV30; /** * # GBFS Versions Schema V3.1-RC * Lists all feed endpoints published according to version sof the GBFS documentation. (added in v1.1) * * ## Links * - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v3.1-RC/gbfs.md#gbfs_versionsjson) */ export declare const gbfsVersionsSchemaV31RC: { $schema: string; $id: string; description: string; type: string; properties: { last_updated: { description: string; type: string; format: string; }; ttl: { description: string; type: string; minimum: number; }; version: { description: string; type: string; const: string; }; data: { description: string; type: string; properties: { versions: { description: string; type: string; items: { type: string; properties: { version: { description: string; type: string; enum: string[]; }; url: { description: string; type: string; format: string; }; }; required: string[]; }; }; }; required: string[]; additionalProperties: boolean; }; }; required: string[]; }; /** * # GBFS Versions Schema V3.1-RC * Lists all feed endpoints published according to versions of the GBFS documentation. (added in v1.1) * * ## Links * - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v3.1-RC/gbfs.md#gbfs_versionsjson) */ export interface GBFSVersionsV31RC { /** * Last time the data in the feed was updated in RFC3339 format. * **format** date-time */ last_updated: string; /** * Number of seconds before the data in the feed will be updated again * (0 if the data should always be refreshed). * **minimum** 0 */ ttl: number; /** * GBFS version number to which the feed conforms, according to the versioning framework. */ version: '3.1-RC'; /** * Response data in the form of name:value pairs. */ data: { /** * Contains one object for each of the available versions of a feed. * The array must be sorted by increasing MAJOR and MINOR version numbers. */ versions: Array<{ /** * The semantic version of the feed in the form X.Y */ version: '1.0' | '1.1' | '2.0' | '2.1' | '2.2' | '2.3' | '3.0' | '3.1-RC'; /** * URL of the corresponding gbfs.json endpoint * **format** uri */ url: string; }>; }; } /** * # GBFS Versions Schema V3.0 * Lists all feed endpoints published according to version sof the GBFS documentation. (added in v1.1) * * ## Links * - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v3.0/gbfs.md#gbfs_versionsjson) */ export declare const gbfsVersionsSchemaV30: { $schema: string; $id: string; description: string; type: string; properties: { last_updated: { description: string; type: string; format: string; }; ttl: { description: string; type: string; minimum: number; }; version: { description: string; type: string; const: string; }; data: { description: string; type: string; properties: { versions: { description: string; type: string; items: { type: string; properties: { version: { description: string; type: string; enum: string[]; }; url: { description: string; type: string; format: string; }; }; required: string[]; }; }; }; required: string[]; additionalProperties: boolean; }; }; required: string[]; }; /** * # GBFS Versions Schema V3.0 * Lists all feed endpoints published according to versions of the GBFS documentation. (added in v1.1) * * ## Links * - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v3.0/gbfs.md#gbfs_versionsjson) */ export interface GBFSVersionsV30 { /** * Last time the data in the feed was updated in RFC3339 format. * **Format**: date-time */ last_updated: string; /** * Number of seconds before the data in the feed will be updated again (0 if the data should always be refreshed). * **Minimum**: 0 */ ttl: number; /** * GBFS version number to which the feed conforms, according to the versioning framework. * **Const**: 3.0 */ version: '3.0'; /** * Response data in the form of name:value pairs. */ data: { /** * Contains one object for each of the available versions of a feed. The array must be sorted by increasing MAJOR and MINOR version number. */ versions: Array<{ /** * The semantic version of the feed in the form X.Y. * **Enum**: ['1.0', '1.1', '2.0', '2.1', '2.2', '2.3', '3.0'] */ version: '1.0' | '1.1' | '2.0' | '2.1' | '2.2' | '2.3' | '3.0'; /** * URL of the corresponding gbfs.json endpoint. * **Format**: uri */ url: string; }>; }; } //# sourceMappingURL=gbfsVersions.d.ts.map