s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
887 lines • 34.5 kB
TypeScript
import type { MultiPolygonGeometry } from '../../..';
/**
* # GBFS Station Information Schema V2.3, V2.2, V2.1, OR V2.0
* List of all stations, their capacities, and locations. REQUIRED for systems utilizing docks.
*
* ## Links
* - [GBFS Specification V2.3](https://github.com/MobilityData/gbfs/blob/v2.3/gbfs.md#station_informationjson)
* - [GBFS Specification V2.2](https://github.com/MobilityData/gbfs/blob/v2.2/gbfs.md#station_informationjson)
* - [GBFS Specification V2.1](https://github.com/MobilityData/gbfs/blob/v2.1/gbfs.md#station_informationjson)
* - [GBFS Specification V2.0](https://github.com/MobilityData/gbfs/blob/v2.0/gbfs.md#station_informationjson)
*/
export type GBFSStationInformationV2 = GBFSStationInformationV23 | GBFSStationInformationV22 | GBFSStationInformationV21 | GBFSStationInformationV20;
/**
* # GBFS Station Information Schema V2.3
* List of all stations, their capacities, and locations. REQUIRED for systems utilizing docks.
*
* ## Links
* - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v2.3/gbfs.md#station_informationjson)
*/
export declare const gbfsStationInformationSchemaV23: {
$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: {
stations: {
type: string;
items: {
type: string;
properties: {
station_id: {
description: string;
type: string;
};
name: {
description: string;
type: string;
};
short_name: {
description: string;
type: string;
};
lat: {
description: string;
type: string;
minimum: number;
maximum: number;
};
lon: {
description: string;
type: string;
minimum: number;
maximum: number;
};
address: {
description: string;
type: string;
};
cross_street: {
description: string;
type: string;
};
region_id: {
description: string;
type: string;
};
post_code: {
description: string;
type: string;
};
rental_methods: {
description: string;
type: string;
items: {
type: string;
enum: string[];
};
minItems: number;
};
is_virtual_station: {
description: string;
type: string;
};
station_area: {
description: string;
type: string;
required: string[];
properties: {
type: {
type: string;
enum: string[];
};
coordinates: {
type: string;
items: {
type: string;
items: {
type: string;
minItems: number;
items: {
type: string;
minItems: number;
items: {
type: string;
};
};
};
};
};
};
};
parking_type: {
description: string;
type: string;
enum: string[];
};
parking_hoop: {
description: string;
type: string;
};
contact_phone: {
description: string;
type: string;
};
capacity: {
description: string;
type: string;
minimum: number;
};
vehicle_capacity: {
description: string;
type: string;
additionalProperties: {
type: string;
};
};
is_valet_station: {
description: string;
type: string;
};
is_charging_station: {
description: string;
type: string;
};
rental_uris: {
description: string;
type: string;
properties: {
android: {
description: string;
type: string;
format: string;
};
ios: {
description: string;
type: string;
format: string;
};
web: {
description: string;
type: string;
format: string;
};
};
};
vehicle_type_capacity: {
description: string;
type: string;
additionalProperties: {
type: string;
};
};
};
required: string[];
};
};
};
required: string[];
};
};
required: string[];
};
/**
* # GBFS Station Information V2.3
* List of all stations, their capacities, and locations. REQUIRED for systems utilizing docks.
*
* ## Links
* - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v2.3/gbfs.md#station_informationjson)
*/
export interface GBFSStationInformationV23 {
/**
* Last time the data in the feed was updated in POSIX time.
* **Minimum**: 1450155600
*/
last_updated: number;
/**
* Number of seconds before the data in the feed will be updated again (0 if the data should always be refreshed).
* **Minimum**: 0
*/
ttl: number;
/**
* GBFS version number to which the feed conforms, according to the versioning framework.
* **Const**: 2.3
*/
version: '2.3';
/**
* Contains station information for the system.
*/
data: {
/**
* Array of station objects.
*/
stations: Array<{
station_id: string;
name: string;
short_name?: string;
lat: number;
lon: number;
address?: string;
cross_street?: string;
region_id?: string;
post_code?: string;
rental_methods?: Array<'key' | 'creditcard' | 'paypass' | 'applepay' | 'androidpay' | 'transitcard' | 'accountnumber' | 'phone'>;
is_virtual_station?: boolean;
station_area?: MultiPolygonGeometry;
parking_type?: 'parking_lot' | 'street_parking' | 'underground_parking' | 'sidewalk_parking' | 'other';
parking_hoop?: boolean;
contact_phone?: string;
capacity?: number;
vehicle_capacity?: Record<string, number>;
is_valet_station?: boolean;
is_charging_station?: boolean;
rental_uris?: {
android?: string;
ios?: string;
web?: string;
};
vehicle_type_capacity?: Record<string, number>;
}>;
};
}
/**
* # GBFS Station Information Schema V2.2
* List of all stations, their capacities, and locations. REQUIRED for systems utilizing docks.
*
* ## Links
* - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v2.2/gbfs.md#station_informationjson)
*/
export declare const gbfsStationInformationSchemaV22: {
$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: {
stations: {
type: string;
items: {
type: string;
properties: {
station_id: {
description: string;
type: string;
};
name: {
description: string;
type: string;
};
short_name: {
description: string;
type: string;
};
lat: {
description: string;
type: string;
minimum: number;
maximum: number;
};
lon: {
description: string;
type: string;
minimum: number;
maximum: number;
};
address: {
description: string;
type: string;
};
cross_street: {
description: string;
type: string;
};
region_id: {
description: string;
type: string;
};
post_code: {
description: string;
type: string;
};
rental_methods: {
description: string;
type: string;
items: {
type: string;
enum: string[];
};
minItems: number;
};
is_virtual_station: {
description: string;
type: string;
};
station_area: {
description: string;
type: string;
required: string[];
properties: {
type: {
type: string;
enum: string[];
};
coordinates: {
type: string;
items: {
type: string;
items: {
type: string;
minItems: number;
items: {
type: string;
minItems: number;
items: {
type: string;
};
};
};
};
};
};
};
capacity: {
description: string;
type: string;
minimum: number;
};
vehicle_capacity: {
description: string;
type: string;
additionalProperties: {
type: string;
};
};
is_valet_station: {
description: string;
type: string;
};
rental_uris: {
description: string;
type: string;
properties: {
android: {
description: string;
type: string;
format: string;
};
ios: {
description: string;
type: string;
format: string;
};
web: {
description: string;
type: string;
format: string;
};
};
};
vehicle_type_capacity: {
description: string;
type: string;
additionalProperties: {
type: string;
};
};
};
required: string[];
};
};
};
required: string[];
};
};
required: string[];
};
/**
* # GBFS Station Information V2.2
* List of all stations, their capacities, and locations. REQUIRED for systems utilizing docks.
*
* ## Links
* - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v2.2/gbfs.md#station_informationjson)
*/
export interface GBFSStationInformationV22 {
/**
* Last time the data in the feed was updated in POSIX time.
* **Minimum**: 1450155600
*/
last_updated: number;
/**
* Number of seconds before the data in the feed will be updated again (0 if the data should always be refreshed).
* **Minimum**: 0
*/
ttl: number;
/**
* GBFS version number to which the feed conforms, according to the versioning framework.
* **Const**: 2.2
*/
version: '2.2';
/**
* Contains station information for the system.
*/
data: {
/**
* Array of station objects.
*/
stations: Array<{
station_id: string;
name: string;
short_name?: string;
lat: number;
lon: number;
address?: string;
cross_street?: string;
region_id?: string;
post_code?: string;
rental_methods?: Array<'key' | 'creditcard' | 'paypass' | 'applepay' | 'androidpay' | 'transitcard' | 'accountnumber' | 'phone'>;
is_virtual_station?: boolean;
station_area?: MultiPolygonGeometry;
capacity?: number;
vehicle_capacity?: Record<string, number>;
is_valet_station?: boolean;
rental_uris?: {
android?: string;
ios?: string;
web?: string;
};
vehicle_type_capacity?: Record<string, number>;
}>;
};
}
/**
* # GBFS Station Information Schema V2.1
* List of all stations, their capacities, and locations. REQUIRED for systems utilizing docks.
*
* ## Links
* - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v2.1/gbfs.md#station_informationjson)
*/
export declare const gbfsStationInformationSchemaV21: {
$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: {
stations: {
type: string;
items: {
type: string;
properties: {
station_id: {
description: string;
type: string;
};
name: {
description: string;
type: string;
};
short_name: {
description: string;
type: string;
};
lat: {
description: string;
type: string;
minimum: number;
maximum: number;
};
lon: {
description: string;
type: string;
minimum: number;
maximum: number;
};
address: {
description: string;
type: string;
};
cross_street: {
description: string;
type: string;
};
region_id: {
description: string;
type: string;
};
post_code: {
description: string;
type: string;
};
rental_methods: {
description: string;
type: string;
items: {
type: string;
enum: string[];
};
minItems: number;
};
is_virtual_station: {
description: string;
type: string;
};
station_area: {
description: string;
type: string;
required: string[];
properties: {
type: {
type: string;
enum: string[];
};
coordinates: {
type: string;
items: {
type: string;
items: {
type: string;
minItems: number;
items: {
type: string;
minItems: number;
items: {
type: string;
};
};
};
};
};
};
};
capacity: {
description: string;
type: string;
minimum: number;
};
vehicle_capacity: {
description: string;
type: string;
additionalProperties: {
type: string;
};
};
is_valet_station: {
description: string;
type: string;
};
rental_uris: {
description: string;
type: string;
properties: {
android: {
description: string;
type: string;
format: string;
};
ios: {
description: string;
type: string;
format: string;
};
web: {
description: string;
type: string;
format: string;
};
};
};
vehicle_type_capacity: {
description: string;
type: string;
additionalProperties: {
type: string;
};
};
};
required: string[];
};
};
};
required: string[];
};
};
required: string[];
};
/**
* # GBFS Station Information V2.1
* List of all stations, their capacities, and locations. REQUIRED for systems utilizing docks.
*
* ## Links
* - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v2.1/gbfs.md#station_informationjson)
*/
export interface GBFSStationInformationV21 {
/**
* Last time the data in the feed was updated in POSIX time.
* **Minimum**: 1450155600
*/
last_updated: number;
/**
* Number of seconds before the data in the feed will be updated again (0 if the data should always be refreshed).
* **Minimum**: 0
*/
ttl: number;
/**
* GBFS version number to which the feed conforms, according to the versioning framework.
* **Const**: 2.1
*/
version: '2.1';
/**
* Contains station information for the system.
*/
data: {
/**
* Array of station objects.
*/
stations: Array<{
station_id: string;
name: string;
short_name?: string;
lat: number;
lon: number;
address?: string;
cross_street?: string;
region_id?: string;
post_code?: string;
rental_methods?: Array<'key' | 'creditcard' | 'paypass' | 'applepay' | 'androidpay' | 'transitcard' | 'accountnumber' | 'phone'>;
is_virtual_station?: boolean;
station_area?: MultiPolygonGeometry;
capacity?: number;
vehicle_capacity?: Record<string, number>;
is_valet_station?: boolean;
rental_uris?: {
android?: string;
ios?: string;
web?: string;
};
vehicle_type_capacity?: Record<string, number>;
}>;
};
}
/**
* # GBFS Station Information Schema V2.0
* List of all stations, their capacities, and locations. REQUIRED for systems utilizing docks.
*
* ## Links
* - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v2.0/gbfs.md#station_informationjson)
*/
export declare const gbfsStationInformationSchemaV20: {
$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: {
stations: {
type: string;
items: {
type: string;
properties: {
station_id: {
description: string;
type: string;
};
name: {
description: string;
type: string;
};
short_name: {
description: string;
type: string;
};
lat: {
description: string;
type: string;
minimum: number;
maximum: number;
};
lon: {
description: string;
type: string;
minimum: number;
maximum: number;
};
address: {
description: string;
type: string;
};
cross_street: {
description: string;
type: string;
};
region_id: {
description: string;
type: string;
};
post_code: {
description: string;
type: string;
};
rental_methods: {
description: string;
type: string;
items: {
type: string;
enum: string[];
};
minItems: number;
};
capacity: {
description: string;
type: string;
minimum: number;
};
rental_uris: {
description: string;
type: string;
properties: {
android: {
description: string;
type: string;
format: string;
};
ios: {
description: string;
type: string;
format: string;
};
web: {
description: string;
type: string;
format: string;
};
};
};
};
required: string[];
};
};
};
required: string[];
};
};
required: string[];
};
/**
* # GBFS Station Information V2.0
* List of all stations, their capacities, and locations. REQUIRED for systems utilizing docks.
*
* ## Links
* - [GBFS Specification](https://github.com/MobilityData/gbfs/blob/v2.0/gbfs.md#station_informationjson)
*/
export interface GBFSStationInformationV20 {
/**
* Last time the data in the feed was updated in POSIX time.
* **Minimum**: 1450155600
*/
last_updated: number;
/**
* Number of seconds before the data in the feed will be updated again (0 if the data should always be refreshed).
* **Minimum**: 0
*/
ttl: number;
/**
* GBFS version number to which the feed conforms, according to the versioning framework.
* **Const**: 2.0
*/
version: '2.0';
/**
* Contains station information for the system.
*/
data: {
/**
* Array of station objects.
*/
stations: Array<{
station_id: string;
name: string;
short_name?: string;
lat: number;
lon: number;
address?: string;
cross_street?: string;
region_id?: string;
post_code?: string;
rental_methods?: Array<'KEY' | 'CREDITCARD' | 'PAYPASS' | 'APPLEPAY' | 'ANDROIDPAY' | 'TRANSITCARD' | 'ACCOUNTNUMBER' | 'PHONE'>;
capacity?: number;
rental_uris?: {
android?: string;
ios?: string;
web?: string;
};
}>;
};
}
//# sourceMappingURL=stationInformation.d.ts.map