Profile Type
A profile is a specific customisation for each endpoint. It parses data from the API differently, add additional information, or enable non-default methods.
Constructors
Constructor | Description |
Full Usage:
Profile(locale, timezone, transformCfg, transformReq, formatStation, transformJourneysQuery, transformRefreshJourneyQuery, parseCommon, parseArrival, parseDeparture, parseHint, parseIcon, parsePolyline, parseLocations, parseLine, parseJourney, parseJourneyLeg, parseMovement, parseOperator, parsePlatform, parseStopover, parseStopovers, parseTrip, parseWhen, parseDateTime, parseBitmask, parseWarning, parsePrognosisType, parseScheduledDays)
Parameters:
string
timezone : string
transformCfg : RoutingMode option -> Cfg -> Cfg
transformReq : RawRequest -> RawRequest
formatStation : string -> string
transformJourneysQuery : JourneysOptions option -> TripSearchRequest -> TripSearchRequest
transformRefreshJourneyQuery : RefreshJourneyOptions option -> ReconstructionRequest -> ReconstructionRequest
parseCommon : Context -> RawCommon -> CommonData
parseArrival : Context -> RawJny -> Alternative
parseDeparture : Context -> RawJny -> Alternative
parseHint : Context -> RawRem -> HintStatusWarning option
parseIcon : Context -> RawIco -> Icon option
parsePolyline : Context -> RawPoly -> FeatureCollection
parseLocations : Context -> RawLoc[] -> StationStopLocation[]
parseLine : Context -> RawProd -> Line
parseJourney : Context -> RawOutCon -> Journey
parseJourneyLeg : Context -> RawSec -> string -> Leg
parseMovement : Context -> RawJny -> Movement
parseOperator : Context -> RawOp -> Operator
parsePlatform : Context -> string option -> string option -> bool option -> Platform
parseStopover : Context -> RawStop -> string -> StopOver
parseStopovers : Context -> RawStop[] option -> string -> StopOver[] option
parseTrip : Context -> RawJny -> Trip
parseWhen : Context -> string -> string option -> string option -> int option -> bool option -> ParsedWhen
parseDateTime : Context -> string -> string option -> int option -> string option
parseBitmask : Context -> int -> Products
parseWarning : Context -> RawHim -> Warning
parsePrognosisType : Context -> string option -> PrognosisType option
parseScheduledDays : Context -> RawSDays -> ScheduledDays option
Returns: Profile
|
|
Instance members
Instance member | Description |
Full Usage:
this._endpoint
|
|
Full Usage:
this._journeysFromTrip
|
|
Full Usage:
this._journeysWalkingSpeed
|
|
Full Usage:
this._lines
|
|
Full Usage:
this._locale
|
|
Full Usage:
this._products
|
|
Full Usage:
this._radar
|
|
Full Usage:
this._reachableFrom
|
|
Full Usage:
this._refreshJourney
|
|
Full Usage:
this._remarks
|
|
Full Usage:
this._remarksGetPolyline
|
|
Full Usage:
this._timezone
|
|
Full Usage:
this._trip
|
|
Full Usage:
this._tripsByName
|
|
Full Usage:
this.addChecksum
|
|
Full Usage:
this.addMicMac
|
|
Full Usage:
this.baseRequest
|
|
Full Usage:
this.cfg
|
|
Full Usage:
this.departuresGetPasslist
|
|
Full Usage:
this.departuresStbFltrEquiv
|
|
Full Usage:
this.formatStation
|
|
Full Usage:
this.journeysOutFrwd
|
|
Full Usage:
this.parseArrival
|
|
Full Usage:
this.parseBitmask
|
|
Full Usage:
this.parseCommon
|
|
Full Usage:
this.parseDateTime
|
|
Full Usage:
this.parseDeparture
|
|
Full Usage:
this.parseHint
|
|
Full Usage:
this.parseIcon
|
|
Full Usage:
this.parseJourney
|
|
Full Usage:
this.parseJourneyLeg
|
|
Full Usage:
this.parseLine
|
|
Full Usage:
this.parseLocations
|
|
Full Usage:
this.parseMovement
|
|
Full Usage:
this.parseOperator
|
|
Full Usage:
this.parsePlatform
|
|
Full Usage:
this.parsePolyline
|
|
Full Usage:
this.parsePrognosisType
|
|
Full Usage:
this.parseScheduledDays
|
|
Full Usage:
this.parseStopover
|
|
Full Usage:
this.parseStopovers
|
|
Full Usage:
this.parseTrip
|
|
Full Usage:
this.parseWarning
|
|
Full Usage:
this.parseWhen
|
|
Full Usage:
this.salt
|
|
Full Usage:
this.transformCfg
|
|
Full Usage:
this.transformJourneysQuery
|
|
Full Usage:
this.transformRefreshJourneyQuery
|
|
Full Usage:
this.transformReq
|