UNPKG

@tmlmobilidade/types

Version:
51 lines (50 loc) 1.95 kB
import { z } from 'zod'; /** * Represents a stop time in the GTFS (General Transit Feed Specification) format. * A stop time is a record of when a transit vehicle arrives at and departs from a specific stop. * It includes information such as the arrival and departure times, the stop ID, the trip ID, * and various pickup and drop-off types. This information is crucial for scheduling and * coordinating transit services, allowing passengers to know when a vehicle will be at a particular stop * and what type of service is available at that stop. */ export declare const GtfsStopTimesSchema: z.ZodObject<{ arrival_time: z.ZodString; continuous_drop_off: z.ZodOptional<z.ZodString>; continuous_pickup: z.ZodOptional<z.ZodString>; departure_time: z.ZodString; drop_off_type: z.ZodOptional<z.ZodString>; pickup_type: z.ZodOptional<z.ZodString>; shape_dist_traveled: z.ZodNumber; stop_headsign: z.ZodOptional<z.ZodString>; stop_id: z.ZodString; stop_sequence: z.ZodNumber; timepoint: z.ZodString; trip_id: z.ZodString; }, "strip", z.ZodTypeAny, { trip_id: string; stop_id: string; arrival_time: string; departure_time: string; shape_dist_traveled: number; stop_sequence: number; timepoint: string; continuous_drop_off?: string | undefined; continuous_pickup?: string | undefined; drop_off_type?: string | undefined; pickup_type?: string | undefined; stop_headsign?: string | undefined; }, { trip_id: string; stop_id: string; arrival_time: string; departure_time: string; shape_dist_traveled: number; stop_sequence: number; timepoint: string; continuous_drop_off?: string | undefined; continuous_pickup?: string | undefined; drop_off_type?: string | undefined; pickup_type?: string | undefined; stop_headsign?: string | undefined; }>; export type GtfsStopTimes = z.infer<typeof GtfsStopTimesSchema>;