s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
276 lines • 9.89 kB
TypeScript
/**
* # GBFS System Alerts Schema V1.1 OR GBFS System Alerts Schema V1.0
* Describes ad-hoc changes to the system.
*
* ## Links
* - [GBFS Specification V1.1](https://github.com/MobilityData/gbfs/blob/v1.1/gbfs.md#system_alertsjson)
* - [GBFS Specification V1.0](https://github.com/MobilityData/gbfs/blob/v1.0/gbfs.md#system_alertsjson)
*/
export type GBFSSystemAlertsV1 = GBFSSystemAlertsV11 | GBFSSystemAlertsV10;
/**
* # GBFS System Alerts Schema V1.1
* Describes ad-hoc changes to the system.
*
* ## Links
* - [GBFS Specification V1.1](https://github.com/MobilityData/gbfs/blob/v1.1/gbfs.md#system_alertsjson)
*/
export declare const gbfsSystemAlertsSchemaV11: {
$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: {
alerts: {
type: string;
items: {
type: string;
properties: {
alert_id: {
description: string;
type: string;
};
type: {
description: string;
type: string;
enum: string[];
};
times: {
description: string;
type: string;
items: {
type: string;
properties: {
start: {
description: string;
type: string;
minimum: number;
};
end: {
description: string;
type: string;
minimum: number;
};
};
};
additionalItems: boolean;
required: string[];
};
station_ids: {
description: string;
type: string;
items: {
type: string;
};
};
region_ids: {
description: string;
type: string;
items: {
type: string;
};
};
url: {
description: string;
type: string;
format: string;
};
summary: {
description: string;
type: string;
};
description: {
description: string;
type: string;
};
last_updated: {
description: string;
type: string;
minimum: number;
};
};
required: string[];
};
};
};
required: string[];
};
};
required: string[];
};
/**
* GBFS System Alerts Schema V1.1 Interface
*/
export interface GBFSSystemAlertsV11 {
/** 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 ad-hoc alerts for the system. */
data: {
alerts: Array<{
alert_id: string;
type: 'SYSTEM_CLOSURE' | 'STATION_CLOSURE' | 'STATION_MOVE' | 'OTHER';
times?: Array<{
start: number;
end?: number;
}>;
station_ids?: string[];
region_ids?: string[];
url?: string;
summary: string;
description?: string;
last_updated?: number;
}>;
};
}
/**
* # GBFS System Alerts Schema V1.0
* Describes ad-hoc changes to the system.
*
* ## Links
* - [GBFS Specification V1.0](https://github.com/MobilityData/gbfs/blob/v1.0/gbfs.md#system_alertsjson)
*/
export declare const gbfsSystemAlertsSchemaV10: {
$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: {
alerts: {
type: string;
items: {
type: string;
properties: {
alert_id: {
description: string;
type: string;
};
type: {
description: string;
type: string;
enum: string[];
};
times: {
description: string;
type: string;
items: {
type: string;
properties: {
start: {
type: string;
minimum: number;
};
end: {
type: string;
minimum: number;
};
};
};
additionalItems: boolean;
required: string[];
};
station_ids: {
description: string;
type: string;
items: {
type: string;
};
};
region_ids: {
description: string;
type: string;
items: {
type: string;
};
};
url: {
description: string;
type: string;
};
summary: {
description: string;
type: string;
};
description: {
description: string;
type: string;
};
last_updated: {
description: string;
type: string;
minimum: number;
maximum: number;
};
};
required: string[];
};
};
};
required: string[];
};
};
required: string[];
};
/**
* GBFS System Alerts Schema V1.0 Interface
*/
export interface GBFSSystemAlertsV10 {
/** 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 ad-hoc alerts for the system. */
data: {
alerts: Array<{
alert_id: string;
type: 'SYSTEM_CLOSURE' | 'STATION_CLOSURE' | 'STATION_MOVE' | 'OTHER';
times?: Array<{
start: number;
end?: number;
}>;
station_ids?: string[];
region_ids?: string[];
url?: string;
summary: string;
description?: string;
last_updated?: number;
}>;
};
}
//# sourceMappingURL=systemAlerts.d.ts.map