UNPKG

s2-tools

Version:

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

152 lines 4.6 kB
/** * # GBFS System Regions Schema V1.1 OR GBFS System Regions Schema V1.0 * Describes regions for a system that is broken up by geographic or political region. * * ## Links * - [GBFS Specification V1.1](https://github.com/MobilityData/gbfs/blob/v1.1/gbfs.md#system_regionsjson) * - [GBFS Specification V1.0](https://github.com/MobilityData/gbfs/blob/v1.0/gbfs.md#system_regionsjson) */ export type GBFSSystemRegionsV1 = GBFSSystemRegionsV11 | GBFSSystemRegionsV10; /** * # GBFS System Regions Schema V1.1 * Describes regions for a system that is broken up by geographic or political region. * * ## Links * - [GBFS Specification V1.1](https://github.com/MobilityData/gbfs/blob/v1.1/gbfs.md#system_regionsjson) */ export declare const gbfsSystemRegionsSchemaV11: { $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 V1.1 Interface */ export interface GBFSSystemRegionsV11 { /** 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 describing regions for a system. */ data: { regions: Array<{ region_id: string; name: string; }>; }; } /** * # GBFS System Regions Schema V1.0 * Describes regions for a system that is broken up by geographic or political region. * * ## Links * - [GBFS Specification V1.0](https://github.com/MobilityData/gbfs/blob/v1.0/gbfs.md#system_regionsjson) */ export declare const gbfsSystemRegionsSchemaV10: { $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: { 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 V1.0 Interface */ export interface GBFSSystemRegionsV10 { /** 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 describing regions for a system. */ data: { regions: Array<{ region_id: string; name: string; }>; }; } //# sourceMappingURL=systemRegions.d.ts.map