0.1.1 • Published 12 years ago

metlink v0.1.1

Weekly downloads
2
License
-
Repository
github
Last release
12 years ago

Metlink

Remember Metlink? Well it's back! In JS form!

Overview

Metlink, now PTV, is the public transport provider in Melbourne, Australia. They have seen fit to release an iPhone application that purports to be a "one-stop-shop for Victorian public transport information". Anybody who has used it knows otherwise. Luckily for us, however, there's a nifty API backing it up, and thanks to metlinkapi on reddit, it's not so hard to decipher.

This library is an abstraction of that API.

Installation

Really easy.

$ npm install metlink

Or if you want to live on the edge (of commandeering APIs)

$ npm install https://github.com/deoxxa/metlink/tarball/master

Documentation

Check out docs/metlink.html

Example Usage

var Metlink = require("./lib/metlink");

var m = new Metlink("http://iphone.metlinkmelbourne.com.au/services");

m.get_transport_line_list("train", function(err, res) {
  console.log(res);
});

License

BSD, 3 clause. A copy is included.

Contact

0.1.1

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago