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

    • deprecated

      The JourneyPlanner v2 queries and types are deprecated. Write your own GraphQL queries for JourneyPlanner v3. Write your own types or use those from JourneyPlannerTypes where applicable.

      Parameters

      • from: string
      • to: string
      • Optional date: string | number | Date
      • Optional options: RequestOptions

      Returns Promise<TripPattern[]>

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

Type declaration

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

Type declaration

    • deprecated

      The JourneyPlanner v2 queries and types are deprecated. Write your own GraphQL queries for JourneyPlanner v3. Write your own types or use those from JourneyPlannerTypes where applicable.

      Parameters

      Returns Promise<(undefined | BikeRentalStation)[]>

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

Type declaration

    • deprecated

      The JourneyPlanner v2 queries and types are deprecated. Write your own GraphQL queries for JourneyPlanner v3. Write your own types or use those from JourneyPlannerTypes where applicable.

      Parameters

      Returns Promise<BikeRentalStation[]>

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

Type declaration

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

      The JourneyPlanner v2 queries and types are deprecated. Write your own GraphQL queries for JourneyPlanner v3. Write your own types or use those from JourneyPlannerTypes where applicable.

      Parameters

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

      Returns Promise<Departure[]>

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

Type declaration

    • deprecated

      The JourneyPlanner v2 queries and types are deprecated. Write your own GraphQL queries for JourneyPlanner v3. Write your own types or use those from JourneyPlannerTypes where applicable.

      Parameters

      Returns Promise<Departure[]>

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

Type declaration

    • deprecated

      The JourneyPlanner v2 queries and types are deprecated. Write your own GraphQL queries for JourneyPlanner v3. Write your own types or use those from JourneyPlannerTypes where applicable.

      Parameters

      • quayIds: string[]
      • params: GetDeparturesParams = {}
      • Optional options: RequestOptions

      Returns Promise<(undefined | DeparturesById)[]>

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

Type declaration

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

      deprecated

      The JourneyPlanner v2 queries and types are deprecated. Write your own GraphQL queries for JourneyPlanner v3. Write your own types or use those from JourneyPlannerTypes where applicable.

      Parameters

      • stopPlaceId: string
      • Optional params: GetDeparturesParams

      Returns Promise<Departure[]>

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

Type declaration

    • deprecated

      The JourneyPlanner v2 queries and types are deprecated. Write your own GraphQL queries for JourneyPlanner v3. Write your own types or use those from JourneyPlannerTypes where applicable.

      Parameters

      • stopPlaceIds: string[]
      • params: GetDeparturesParams = {}
      • Optional options: RequestOptions

      Returns Promise<(undefined | DeparturesById)[]>

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

    • deprecated

      The JourneyPlanner v2 queries and types are deprecated. Write your own GraphQL queries for JourneyPlanner v3. Write your own types or use those from JourneyPlannerTypes where applicable.

      Parameters

      Returns Promise<NearestPlace[]>

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

Type declaration

    • deprecated

      The JourneyPlanner v2 queries and types are deprecated. Write your own GraphQL queries for JourneyPlanner v3. Write your own types or use those from JourneyPlannerTypes where applicable.

      Parameters

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

      Returns Promise<undefined | StopPlaceDetails>

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

Type declaration

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

      The JourneyPlanner v2 queries and types are deprecated. Write your own GraphQL queries for JourneyPlanner v3. Write your own types or use those from JourneyPlannerTypes where applicable.

      Parameters

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

      Returns Promise<Quay[]>

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

Type declaration

    • deprecated

      The JourneyPlanner v2 queries and types are deprecated. Write your own GraphQL queries for JourneyPlanner v3. Write your own types or use those from JourneyPlannerTypes where applicable.

      Parameters

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

      Returns Promise<undefined | StopPlaceDetails>

getStopPlaceDepartures: () => void

Type declaration

    • (): void
    • deprecated

      The JourneyPlanner v2 queries and types are deprecated. Write your own GraphQL queries for JourneyPlanner v3. Write your own types or use those from JourneyPlannerTypes where applicable.

      Returns void

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

Type declaration

    • deprecated

      The JourneyPlanner v2 queries and types are deprecated. Write your own GraphQL queries for JourneyPlanner v3. Write your own types or use those from JourneyPlannerTypes where applicable.

      Parameters

      • stopPlaceIds: string[]
      • params: StopPlaceParams = {}
      • Optional options: RequestOptions

      Returns Promise<(undefined | StopPlaceDetails)[]>

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

Type declaration

    • deprecated

      The JourneyPlanner v2 queries and types are deprecated. Write your own GraphQL queries for JourneyPlanner v3. Write your own types or use those from JourneyPlannerTypes where applicable.

      Parameters

      Returns Promise<StopPlaceDetails[]>

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