UNPKG

mobility-toolbox-js

Version:

Toolbox for JavaScript applications in the domains of mobility and logistics.

35 lines (34 loc) 2.21 kB
import type { GeoJSONGeometry } from 'ol/format/GeoJSON'; import type { MocoNotification, MocoNotificationFeature, MocoNotificationFeatureProperties, MocoNotificationProperties } from '../../types'; export type MocoNotificationAsFeature = GeoJSON.Feature<GeoJSONGeometry, MocoNotificationFeatureProperties & MocoNotificationProperties>; export type MocoNotificationAsFeatureCollection = GeoJSON.FeatureCollection<GeoJSONGeometry, MocoNotificationFeatureProperties & MocoNotificationProperties>; export declare const MOCO_REASONS_CATEGORY: { DAS_PERSONAL_BETREFEND: string; SICHERHEITSRELEVANT: string; SPEZIELLE_ANLAESSE: string; TECHNISCHE_PROBLEME: string; UMWELTEINFLUESSE: string; UNDEFINIERT: string; UNFALL: string; VERKEHRLICHE_GRUENDE: string; VERSCHIEDENES: string; }; export declare const MOCO_IMAGE_BY_CATEGORY: { [MOCO_REASONS_CATEGORY.DAS_PERSONAL_BETREFEND]: string; [MOCO_REASONS_CATEGORY.SICHERHEITSRELEVANT]: string; [MOCO_REASONS_CATEGORY.SPEZIELLE_ANLAESSE]: string; [MOCO_REASONS_CATEGORY.TECHNISCHE_PROBLEME]: string; [MOCO_REASONS_CATEGORY.UMWELTEINFLUESSE]: string; [MOCO_REASONS_CATEGORY.UNDEFINIERT]: string; [MOCO_REASONS_CATEGORY.UNFALL]: string; [MOCO_REASONS_CATEGORY.VERKEHRLICHE_GRUENDE]: string; [MOCO_REASONS_CATEGORY.VERSCHIEDENES]: string; }; export declare const getTime: (str: string) => number; export declare const isMocoNotificationNotOutOfDate: (notification: MocoNotification, now?: Date) => boolean; export declare const isMocoNotificationPublished: (notificationProperties: MocoNotificationProperties, now: Date) => boolean; export declare const isMocoNotificationActive: (notificationProperties: MocoNotificationProperties, now: Date) => boolean; export declare const getMocoStartsString: (notificationProperties: MocoNotificationProperties, now: Date) => string; export declare const getMocoIconRefFeatures: (notification: MocoNotification) => MocoNotificationFeature[]; export declare const getMocoNotificationsAsFeatureCollection: (notifications: MocoNotification[]) => MocoNotificationAsFeatureCollection; export declare const getCurrentGraph: (mapping: object, zoom: number) => any;