Class ManniWatchApiClient

Hierarchy

  • ManniWatchApiClient

Constructors

Properties

endpoint: string

the endpoint base Url to query

httpClient: AxiosInstance

Methods

  • Since

    3.0.0

    Parameters

    • routeId: string

      the route id

    • direction: string

    Returns Promise<IVehiclePathInfo>

  • Since

    1.0.0

    Parameters

    • tripId: string

      tripId to query

    Returns Promise<IVehiclePathInfo>

  • Since

    1.0.0

    Parameters

    • vehicleId: string

      the vehicleId

    Returns Promise<IVehiclePathInfo>

  • Since

    1.0.0

    Parameters

    • stopId: string

    Returns Promise<IStopInfo>

  • Since

    2.3.0

    Parameters

    • stopId: string
    • mode: StopMode = 'departure'
    • Optional startTime: number

      milliseconds since epoch. now if undefined

    • Optional timeFrame: number

      time frame from startTime in minutes

    Returns Promise<IStopPassage>

  • Since

    1.0.0

    Parameters

    • stopPointId: string

    Returns Promise<IStopPointInfo>

  • Since

    3.0.0

    Parameters

    • stopPointId: string
    • mode: StopMode = 'departure'
    • Optional startTime: number

      milliseconds since epoch. now if undefined

    • Optional timeFrame: number

      time frame from startTime in minutes

    Returns Promise<IStopPassage>

  • Since

    1.0.0

    Parameters

    • tripId: string
    • mode: StopMode = 'departure'

    Returns Promise<ITripPassages>

  • Correct

    Parameters

    • positionType: PositionType = 'CORRECTED'

      coordinate type

    • Optional lastUpdate: string | number

      timestamp of last update

    Returns Promise<IVehicleLocationList>

  • Type Parameters

    • T

    • REQUEST_DATA = any

    Parameters

    • reqOpts: AxiosRequestConfig<REQUEST_DATA>

    Returns Promise<T>

Generated using TypeDoc