Header menu logo fshafas

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

Profile(locale, timezone, transformCfg, transformReq, formatStation, transformJourneysQuery, parseCommon, parseArrival, parseDeparture, parseHint, parseIcon, parsePolyline, parseLocations, parseLine, parseJourney, parseJourneyLeg, parseMovement, parseOperator, parsePlatform, parseStopover, parseStopovers, parseTrip, parseWhen, parseDateTime, parseBitmask, parseWarning, parsePrognosisType, parseScheduledDays)

Full Usage: Profile(locale, timezone, transformCfg, transformReq, formatStation, transformJourneysQuery, parseCommon, parseArrival, parseDeparture, parseHint, parseIcon, parsePolyline, parseLocations, parseLine, parseJourney, parseJourneyLeg, parseMovement, parseOperator, parsePlatform, parseStopover, parseStopovers, parseTrip, parseWhen, parseDateTime, parseBitmask, parseWarning, parsePrognosisType, parseScheduledDays)

Parameters:
Returns: Profile
locale : string
timezone : string
transformCfg : RoutingMode option -> Cfg -> Cfg
transformReq : RawRequest -> RawRequest
formatStation : string -> string
transformJourneysQuery : JourneysOptions option -> TripSearchRequest -> TripSearchRequest
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

this._endpoint

Full Usage: this._endpoint

this._journeysFromTrip

Full Usage: this._journeysFromTrip

this._journeysWalkingSpeed

Full Usage: this._journeysWalkingSpeed

this._lines

Full Usage: this._lines

this._locale

Full Usage: this._locale

this._products

Full Usage: this._products

this._radar

Full Usage: this._radar

this._reachableFrom

Full Usage: this._reachableFrom

this._refreshJourney

Full Usage: this._refreshJourney

this._remarks

Full Usage: this._remarks

this._remarksGetPolyline

Full Usage: this._remarksGetPolyline

this._timezone

Full Usage: this._timezone

this._trip

Full Usage: this._trip

this._tripsByName

Full Usage: this._tripsByName

this.addChecksum

Full Usage: this.addChecksum

this.addMicMac

Full Usage: this.addMicMac

this.baseRequest

Full Usage: this.baseRequest

this.cfg

Full Usage: this.cfg

this.departuresGetPasslist

Full Usage: this.departuresGetPasslist

this.departuresStbFltrEquiv

Full Usage: this.departuresStbFltrEquiv

this.formatStation

Full Usage: this.formatStation

this.journeysOutFrwd

Full Usage: this.journeysOutFrwd

this.parseArrival

Full Usage: this.parseArrival

this.parseBitmask

Full Usage: this.parseBitmask

this.parseCommon

Full Usage: this.parseCommon

this.parseDateTime

Full Usage: this.parseDateTime

this.parseDeparture

Full Usage: this.parseDeparture

this.parseHint

Full Usage: this.parseHint

this.parseIcon

Full Usage: this.parseIcon

this.parseJourney

Full Usage: this.parseJourney

this.parseJourneyLeg

Full Usage: this.parseJourneyLeg

this.parseLine

Full Usage: this.parseLine

this.parseLocations

Full Usage: this.parseLocations

this.parseMovement

Full Usage: this.parseMovement

this.parseOperator

Full Usage: this.parseOperator

this.parsePlatform

Full Usage: this.parsePlatform

this.parsePolyline

Full Usage: this.parsePolyline

this.parsePrognosisType

Full Usage: this.parsePrognosisType

this.parseScheduledDays

Full Usage: this.parseScheduledDays

this.parseStopover

Full Usage: this.parseStopover

this.parseStopovers

Full Usage: this.parseStopovers

this.parseTrip

Full Usage: this.parseTrip

this.parseWarning

Full Usage: this.parseWarning

this.parseWhen

Full Usage: this.parseWhen

this.salt

Full Usage: this.salt

this.transformCfg

Full Usage: this.transformCfg

this.transformJourneysQuery

Full Usage: this.transformJourneysQuery

this.transformReq

Full Usage: this.transformReq

Type something to start searching.