1.4.2 • Published 5 years ago

entur-departures-cli v1.4.2

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

entur-departures

This library contains simple abstractions for some commonly used operations related to interacting with the ENTUR-API. Example usages of this library includes a CLI for checking departure times.

Functions

getDeparturesByQuayId

import { getDeparturesByQuayId } from 'entur-departures';

const optionalNumberOfDepartures = 1;

getDeparturesByQuayId("stopId", optionalNumberOfDepartures).then(stops => {
  console.log(stops);
})

searchForQuayByName

import { searchForQuayByName } from 'entur-departures';

const optionalNumberOfDepartures = 1;

searchForQuayByName("quayQuery").then(results => {
  console.log(results);
})

Further learning

For info on the "stop" interface, look at the source code (TypeScript), or head over to the ENTUR Developer portal.

1.4.2

5 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago