tkl

0.0.1 • Public • Published

TKL - simple and incomplete tkl api

Simple to use

var tkl = require( 'tkl' )
tkl.getVehicleActivity( function ( err, busses ) {
  var list = Object.keys( busses ).map( function ( id ) {
    return busses[ id ]
  } )
 
  var bus = list[ 0 ]
 
  console.log( bus ) // output
)

sample output

{
  line: '15',
  loc: { longitude: '23.7603687', latitude: '61.4952483' },
  bearing: '74.0',
  speed: '18.0',
  id: 'TKL_48',
  delay: 'P0Y0M0DT0H7M53.000S',
  delayMs: 3500
}

About

Old code for an old prototype I decided to wrap into an npm module.

Why

To simplify communication with the public API

How

Using the public Journeys API

Test

npm test

Dependencies (1)

Dev Dependencies (3)

Package Sidebar

Install

npm i tkl

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • talmobi