export interface Point { lat: number, lon: number, } export type MasstransitVehicles = 'bus' | 'trolleybus' | 'tramway' | 'minibus' | 'suburban' | 'underground' | 'ferry' | 'cable' | 'funicular'; export type Vehicles = MasstransitVehicles | 'walk' | 'car'; export interface DrivingInfo { time: string; timeWithTraffic: string; distance: number; } export interface MasstransitInfo { time: string; transferCount: number; walkingDistance: number; } export interface RouteInfo { id: string; sections: { points: Point[]; sectionInfo: T; routeInfo: T; routeIndex: number; stops: any[]; type: string; transports?: any; sectionColor?: string; }[]; } export interface RoutesFoundEvent { nativeEvent: { status: 'success' | 'error'; id: string; routes: RouteInfo[]; }; } export enum Animation { SMOOTH, LINEAR, } export interface CameraPosition { zoom: number; tilt: number; azimuth: number; point: Point; finished: boolean; } export type VisibleRegion = { bottomLeft: Point; bottomRight: Point; topLeft: Point; topRight: Point; }