Options
All
  • Public
  • Public/Protected
  • All
Menu

This Path class serves as an implementation of the IPath interface and as a home for some helper functions related to IPath instances

Hierarchy

  • Path

Implements

Index

Constructors

constructor

  • new Path(legs: ILeg[], context?: object): Path

Properties

context

context: object

legs

legs: ILeg[]

Methods

addPath

  • addPath(path: IPath): void

addToContext

  • addToContext(id: string, value: any): void

appendLeg

  • appendLeg(leg: ILeg): void

getArrivalTime

  • getArrivalTime(query: IQuery): Date

getContext

  • getContext(): object

getDepartureTime

  • getDepartureTime(query: IQuery): Date

getFromContext

  • getFromContext(id: string): any

getStartLocationId

  • getStartLocationId(): string

getTransferTime

getTravelTime

prependLeg

  • prependLeg(leg: ILeg): void

updateContext

  • updateContext(other: object): void

Static compareEquals

  • compareEquals(path: IPath, otherPath: IPath): boolean

Static create

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc