1.0.1 • Published 5 years ago

metro-lisboa v1.0.1

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

Metro-Lisboa

This is a wrapper for some of the Metro-Lisboa WEBAPI. Please feel free to contribute! :)

Installation

npm install metro-lisboa

Get Token here

Example

  const Metro = require("metro-lisboa");
  const metro = new Metro("TOKEN");

  //OD => Odivelas
  metro.getStationWaitingTime("OD").then(station => {
      // do anything with station response :)
  });

Available functions

getRedLineWaitingTime
getYellowLineWaitingTime
getGreenLineWaitingTime
getBlueLineWaitingTime
getRedLineStatus
getYellowStatus
getGreenStatus
getBlueLineStatus
getStationInfo (station parameter id is mandatory)
getStationWaitingTime (station parameter id is mandatory)

.

1.0.1

5 years ago

1.0.0

5 years ago