nextbusjs
nextbusjs copied to clipboard
reasonable interface to nextbus written in Javascript
Adds a missing error check callback in `vehicleLocations` and throws errors for bad HTTP status codes. Also adds some unit tests with mocked server responses to test these behaviors.
The endpoint returns a list of agencies that nextbus provides data for.
Tests all pass just fine for me. Spurious?
use [this](https://github.com/ubilabs/kd-tree-javascript) for nearby stops calculation
Currently, lib/index.js is cluttered with a ton of Titanium compatibility code. Separate this out into a separate file (and consider creating a repository for it).