s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
209 lines • 7.01 kB
TypeScript
/**
* # GBFS System Calendar Schema V1.1 OR GBFS System Calendar Schema V1.0
* Describes the operating calendar for a system.
*
* ## Links
* - [GBFS Specification V1.1](https://github.com/MobilityData/gbfs/blob/v1.1/gbfs.md#system_calendarjson)
* - [GBFS Specification V1.0](https://github.com/MobilityData/gbfs/blob/v1.0/gbfs.md#system_calendarjson)
*/
export type GBFSSystemCalendarV1 = GBFSSystemCalendarV11 | GBFSSystemCalendarV10;
/**
* # GBFS System Calendar Schema V1.1
* Describes the operating calendar for a system.
*
* ## Links
* - [GBFS Specification V1.1](https://github.com/MobilityData/gbfs/blob/v1.1/gbfs.md#system_calendarjson)
*/
export declare const gbfsSystemCalendarSchemaV11: {
$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: {
calendars: {
type: string;
items: {
type: string;
properties: {
start_month: {
description: string;
type: string;
minimum: number;
maximum: number;
};
start_day: {
description: string;
type: string;
minimum: number;
maximum: number;
};
start_year: {
description: string;
type: string;
pattern: string;
};
end_month: {
description: string;
type: string;
minimum: number;
maximum: number;
};
end_day: {
description: string;
type: string;
minimum: number;
maximum: number;
};
end_year: {
description: string;
type: string;
pattern: string;
};
};
required: string[];
};
};
};
required: string[];
};
};
required: string[];
};
/**
* GBFS System Calendar Schema V1.1 Interface
*/
export interface GBFSSystemCalendarV11 {
/** 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 the system's operations calendar. */
data: {
calendars: Array<{
start_month: number;
start_day: number;
start_year?: number;
end_month: number;
end_day: number;
end_year?: number;
}>;
};
}
/**
* # GBFS System Calendar Schema V1.0
* Describes the operating calendar for a system.
*
* ## Links
* - [GBFS Specification V1.0](https://github.com/MobilityData/gbfs/blob/v1.0/gbfs.md#system_calendarjson)
*/
export declare const gbfsSystemCalendarSchemaV10: {
$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: {
calendars: {
type: string;
items: {
type: string;
properties: {
start_month: {
description: string;
type: string;
minimum: number;
maximum: number;
};
start_day: {
description: string;
type: string;
minimum: number;
maximum: number;
};
start_year: {
description: string;
type: string;
};
end_month: {
description: string;
type: string;
minimum: number;
maximum: number;
};
end_day: {
description: string;
type: string;
minimum: number;
maximum: number;
};
end_year: {
description: string;
type: string;
};
};
required: string[];
};
minItems: number;
};
};
required: string[];
};
};
required: string[];
};
/**
* GBFS System Calendar Schema V1.0 Interface
*/
export interface GBFSSystemCalendarV10 {
/** 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 the system's operations calendar. */
data: {
calendars: Array<{
start_month: number;
start_day: number;
start_year?: number;
end_month: number;
end_day: number;
end_year?: number;
}>;
};
}
//# sourceMappingURL=systemCalendar.d.ts.map