Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EnturClient

Hierarchy

  • EnturClient

Index

Properties

findTrips: (from: string, to: string, date?: string | number | Date, options?: RequestOptions) => Promise<TripPattern[]>

Type declaration

geocoder: GeocoderClient
getBikeRentalStation: (stationId: string, options?: RequestOptions) => Promise<BikeRentalStation>

Type declaration

getBikeRentalStations: (stationIds: string[], options?: RequestOptions) => Promise<(undefined | BikeRentalStation)[]>

Type declaration

getBikeRentalStationsByPosition: (coordinates: Coordinates, distance?: number, options?: RequestOptions) => Promise<BikeRentalStation[]>

Type declaration

getDeparturesBetweenStopPlaces: (fromStopPlaceId: string, toStopPlaceId: string, params?: GetDeparturesBetweenStopPlacesParams, options?: RequestOptions) => Promise<Departure[]>

Type declaration

    • (fromStopPlaceId: string, toStopPlaceId: string, params?: GetDeparturesBetweenStopPlacesParams, options?: RequestOptions): Promise<Departure[]>
    • Parameters

      • fromStopPlaceId: string
      • toStopPlaceId: string
      • params: GetDeparturesBetweenStopPlacesParams = {}
      • Optional options: RequestOptions

      Returns Promise<Departure[]>

getDeparturesForServiceJourney: (id: string, date?: string, options?: RequestOptions) => Promise<Departure[]>

Type declaration

getDeparturesFromQuays: (quayIds: string[], params?: GetDeparturesParams, options?: RequestOptions) => Promise<(undefined | DeparturesById)[]>

Type declaration

getDeparturesFromStopPlace: (stopPlaceId: string, params?: GetDeparturesParams) => Promise<Departure[]>

Type declaration

    • (stopPlaceId: string, params?: GetDeparturesParams): Promise<Departure[]>
    • Finds departures that leaves from a certain StopPlace.

      Parameters

      • stopPlaceId: string
      • Optional params: GetDeparturesParams

      Returns Promise<Departure[]>

getDeparturesFromStopPlaces: (stopPlaceIds: string[], params?: GetDeparturesParams, options?: RequestOptions) => Promise<(undefined | DeparturesById)[]>

Type declaration

getFeatures: (text: string, coords?: Coordinates, params?: GetFeaturesParams, options?: RequestOptions) => Promise<Feature[]>

Type declaration

getFeaturesReverse: (coords: Coordinates, params?: GetFeaturesReverseParam, options?: RequestOptions) => Promise<Feature[]>

Type declaration

getNearestPlaces: (coordinates: Coordinates, params?: NearestParams, options?: RequestOptions) => Promise<NearestPlace[]>

Type declaration

getParentStopPlace: (stopPlaceId: string, params?: StopPlaceParams, options?: RequestOptions) => Promise<undefined | StopPlaceDetails>

Type declaration

getQuaysForStopPlace: (stopPlaceId: string, params?: StopPlaceParams, options?: RequestOptions) => Promise<Quay[]>

Type declaration

    • (stopPlaceId: string, params?: StopPlaceParams, options?: RequestOptions): Promise<Quay[]>
    • Parameters

      • stopPlaceId: string
      • params: StopPlaceParams = {}
      • Optional options: RequestOptions

      Returns Promise<Quay[]>

getStopPlace: (stopPlaceId: string, params?: StopPlaceParams, options?: RequestOptions) => Promise<undefined | StopPlaceDetails>

Type declaration

getStopPlaceDepartures: () => void

Type declaration

    • (): void
    • Returns void

getStopPlaces: (stopPlaceIds: string[], params?: StopPlaceParams, options?: RequestOptions) => Promise<(undefined | StopPlaceDetails)[]>

Type declaration

getStopPlacesByPosition: (coordinates: Coordinates, distance?: number, params?: StopPlaceParams, options?: RequestOptions) => Promise<StopPlaceDetails[]>

Type declaration

getTripPatterns: (params: GetTripPatternsParams, overrideConfig?: OverrideConfig, options?: RequestOptions) => Promise<TripPattern[]>

Type declaration

mobility: MobilityClient

Methods

  • queryJourneyPlanner<T>(queryObj: string, variables: Record<string, unknown>, options?: RequestOptions): Promise<T>
  • Type parameters

    • T

    Parameters

    • queryObj: string
    • variables: Record<string, unknown>
    • Optional options: RequestOptions

    Returns Promise<T>

  • queryNsr<T>(queryObj: string, variables: Record<string, unknown>, options?: RequestOptions): Promise<T>
  • Type parameters

    • T

    Parameters

    • queryObj: string
    • variables: Record<string, unknown>
    • Optional options: RequestOptions

    Returns Promise<T>

Generated using TypeDoc