trento-parking
Version:
A TypeScript library providing easy access to parking and bike slot availability, location, and details in Trento, Italy. Fetches data from the official Comune di Trento parking services.
37 lines (34 loc) • 973 B
TypeScript
import { Distance } from './distance.js';
import { OpeningHours } from './opening-hours.js';
import { ParkingType } from './parking-types.js';
declare class ParkingData {
id: number;
driver: string;
geom: string;
name: string;
type: ParkingType;
city: string;
color: string | null;
capacity: number;
freeslots: number;
diag: string;
threshold: number;
timestamp: number;
distances: string;
currentTimestamp: number;
address: string;
gmaps: string;
link: string;
offline: boolean;
opening: OpeningHours;
open: number;
phone: string;
website: string;
openingFlag: string;
constructor(data: Partial<ParkingData>);
getDistances(): Distance[];
getDistancesCompleted(parkings: ParkingData[]): (Distance & Omit<ParkingData, "getDistances" | "getDistancesCompleted" | "isAvailable" | "isFull">)[];
isAvailable(): boolean;
isFull(): boolean;
}
export { ParkingData };