@tmlmobilidade/types
Version:
62 lines (61 loc) • 2.61 kB
TypeScript
import { z } from 'zod';
export declare const GtfsStopAccessSchema: z.ZodEnum<["0", "1"]>;
export type GtfsStopAccess = z.infer<typeof GtfsStopAccessSchema>;
/**
* Represents a stop in the GTFS (General Transit Feed Specification) format.
* A stop is a physical location where passengers can board or alight from a transit vehicle.
* Each stop can have various attributes such as location, accessibility, and identification.
*/
export declare const GtfsStopSchema: z.ZodObject<{
level_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
location_type: z.ZodDefault<z.ZodEnum<["0", "1", "2", "3", "4"]>>;
parent_station: z.ZodOptional<z.ZodNullable<z.ZodString>>;
platform_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
stop_access: z.ZodOptional<z.ZodNullable<z.ZodEnum<["0", "1"]>>>;
stop_code: z.ZodString;
stop_desc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
stop_id: z.ZodString;
stop_lat: z.ZodNumber;
stop_lon: z.ZodNumber;
stop_name: z.ZodString;
stop_timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
stop_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
tts_stop_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
wheelchair_boarding: z.ZodEnum<["0", "1", "2"]>;
zone_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
stop_id: string;
location_type: "0" | "1" | "2" | "3" | "4";
stop_code: string;
stop_lat: number;
stop_lon: number;
stop_name: string;
wheelchair_boarding: "0" | "1" | "2";
level_id?: string | null | undefined;
parent_station?: string | null | undefined;
platform_code?: string | null | undefined;
stop_access?: "0" | "1" | null | undefined;
stop_desc?: string | null | undefined;
stop_timezone?: string | null | undefined;
stop_url?: string | null | undefined;
tts_stop_name?: string | null | undefined;
zone_id?: string | null | undefined;
}, {
stop_id: string;
stop_code: string;
stop_lat: number;
stop_lon: number;
stop_name: string;
wheelchair_boarding: "0" | "1" | "2";
level_id?: string | null | undefined;
location_type?: "0" | "1" | "2" | "3" | "4" | undefined;
parent_station?: string | null | undefined;
platform_code?: string | null | undefined;
stop_access?: "0" | "1" | null | undefined;
stop_desc?: string | null | undefined;
stop_timezone?: string | null | undefined;
stop_url?: string | null | undefined;
tts_stop_name?: string | null | undefined;
zone_id?: string | null | undefined;
}>;
export type GtfsStop = z.infer<typeof GtfsStopSchema>;