s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
194 lines • 6.44 kB
TypeScript
/**
* # GBFS System Hours Schema V1.1 OR GBFS System Hours Schema V1.0
* Describes the system hours of operation.
*
* ## Links
* - [GBFS Specification V1.1](https://github.com/MobilityData/gbfs/blob/v1.1/gbfs.md#system_hoursjson)
* - [GBFS Specification V1.0](https://github.com/MobilityData/gbfs/blob/v1.0/gbfs.md#system_hoursjson)
*/
export type GBFSSystemHoursV1 = GBFSSystemHoursV11 | GBFSSystemHoursV10;
/**
* # GBFS System Hours Schema V1.1
* Describes the system hours of operation.
*
* ## Links
* - [GBFS Specification V1.1](https://github.com/MobilityData/gbfs/blob/v1.1/gbfs.md#system_hoursjson)
*/
export declare const gbfsSystemHoursSchemaV11: {
$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: {
rental_hours: {
type: string;
items: {
type: string;
properties: {
user_types: {
description: string;
type: string;
items: {
type: string;
enum: string[];
};
minItems: number;
maxItems: number;
};
days: {
description: string;
type: string;
items: {
type: string;
enum: string[];
};
minItems: number;
maxItems: number;
};
start_time: {
description: string;
type: string;
pattern: string;
};
end_time: {
description: string;
type: string;
pattern: string;
};
};
required: string[];
};
};
};
required: string[];
};
};
required: string[];
};
/**
* GBFS System Hours Schema V1.1 Interface
*/
export interface GBFSSystemHoursV11 {
/** 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 system hours of operations. */
data: {
rental_hours: Array<{
user_types: ('member' | 'nonmember')[];
days: ('sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat')[];
start_time: string;
end_time: string;
}>;
};
}
/**
* # GBFS System Hours Schema V1.0
* Describes the system hours of operation.
*
* ## Links
* - [GBFS Specification V1.0](https://github.com/MobilityData/gbfs/blob/v1.0/gbfs.md#system_hoursjson)
*/
export declare const gbfsSystemHoursSchemaV10: {
$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: {
rental_hours: {
type: string;
items: {
type: string;
properties: {
user_types: {
description: string;
type: string;
items: {
type: string;
enum: string[];
};
};
days: {
description: string;
type: string;
items: {
type: string;
enum: string[];
};
};
start_time: {
description: string;
type: string;
pattern: string;
};
end_time: {
description: string;
type: string;
pattern: string;
};
};
required: string[];
};
};
};
required: string[];
};
};
required: string[];
};
/**
* GBFS System Hours Schema V1.0 Interface
*/
export interface GBFSSystemHoursV10 {
/** 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 system hours of operations. */
data: {
rental_hours: Array<{
user_types: ('member' | 'nonmember')[];
days: ('mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun')[];
start_time: string;
end_time: string;
}>;
};
}
//# sourceMappingURL=systemHours.d.ts.map