entur-departures
TypeScript icon, indicating that this package has built-in type declarations

2.2.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i entur-departures

Weekly Downloads

3

Version

2.2.1

License

MIT

Unpacked Size

11.7 kB

Total Files

13

Last publish

Collaborators

  • jonasws