UNPKG

s2-tools

Version:

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

316 lines 9.06 kB
/** * # GBFS System Regions V2.3, V2.2, V2.1, OR V2.0 * Describes regions for a system that is broken up by geographic or political region. * * ## Links * - [GBFS Specification V2.3](https://github.com/MobilityData/gbfs/blob/v2.3/gbfs.md#system_regionsjson) * - [GBFS Specification V2.2](https://github.com/MobilityData/gbfs/blob/v2.2/gbfs.md#system_regionsjson) * - [GBFS Specification V2.1](https://github.com/MobilityData/gbfs/blob/v2.1/gbfs.md#system_regionsjson) * - [GBFS Specification V2.0](https://github.com/MobilityData/gbfs/blob/v2.0/gbfs.md#system_regionsjson) */ export type GBFSSystemRegionsV2 = GBFSSystemRegionsV23 | GBFSSystemRegionsV22 | GBFSSystemRegionsV21 | GBFSSystemRegionsV20; /** * # GBFS System Regions Schema V2.3 * * Describes regions for a system that is broken up by geographic or political region. * * **Links**: * - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v2.3/gbfs.md#system_regionsjson) */ export declare const gbfsSystemRegionsSchemaV23: { $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: { regions: { description: string; type: string; items: { type: string; properties: { region_id: { description: string; type: string; }; name: { description: string; type: string; }; }; required: string[]; }; }; }; required: string[]; }; }; required: string[]; }; /** * # GBFS System Regions Schema V2.3 * * Describes regions for a system that is broken up by geographic or political region. * * **Links**: * - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v2.3/gbfs.md#system_regionsjson) */ export interface GBFSSystemRegionsV23 { last_updated: number; ttl: number; version: '2.3'; data: { regions: Array<{ region_id: string; name: string; }>; }; } /** * # GBFS System Regions Schema V2.2 * * Describes regions for a system that is broken up by geographic or political region. * * **Links**: * - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v2.2/gbfs.md#system_regionsjson) */ export declare const gbfsSystemRegionsSchemaV22: { $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: { regions: { description: string; type: string; items: { type: string; properties: { region_id: { description: string; type: string; }; name: { description: string; type: string; }; }; required: string[]; }; }; }; required: string[]; }; }; required: string[]; }; /** * # GBFS System Regions Schema V2.2 * * Describes regions for a system that is broken up by geographic or political region. * * **Links**: * - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v2.2/gbfs.md#system_regionsjson) */ export interface GBFSSystemRegionsV22 { last_updated: number; ttl: number; version: '2.2'; data: { regions: Array<{ region_id: string; name: string; }>; }; } /** * # GBFS System Regions Schema V2.1 * * Describes regions for a system that is broken up by geographic or political region. * * **Links**: * - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v2.1/gbfs.md#system_regionsjson) */ export declare const gbfsSystemRegionsSchemaV21: { $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: { regions: { description: string; type: string; items: { type: string; properties: { region_id: { description: string; type: string; }; name: { description: string; type: string; }; }; required: string[]; }; }; }; required: string[]; }; }; required: string[]; }; /** * # GBFS System Regions Schema V2.1 * * Describes regions for a system that is broken up by geographic or political region. * * **Links**: * - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v2.1/gbfs.md#system_regionsjson) */ export interface GBFSSystemRegionsV21 { last_updated: number; ttl: number; version: '2.1'; data: { regions: Array<{ region_id: string; name: string; }>; }; } /** * # GBFS System Regions Schema V2.0 * * Describes regions for a system that is broken up by geographic or political region. * * **Links**: * - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v2.0/gbfs.md#system_regionsjson) */ export declare const gbfsSystemRegionsSchemaV20: { $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: { regions: { description: string; type: string; items: { type: string; properties: { region_id: { description: string; type: string; }; name: { description: string; type: string; }; }; required: string[]; }; }; }; required: string[]; }; }; required: string[]; }; /** * # GBFS System Regions Schema V2.0 * * Describes regions for a system that is broken up by geographic or political region. * * **Links**: * - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v2.0/gbfs.md#system_regionsjson) */ export interface GBFSSystemRegionsV20 { last_updated: number; ttl: number; version: '2.0'; data: { regions: Array<{ region_id: string; name: string; }>; }; } //# sourceMappingURL=systemRegions.d.ts.map