Skip to content

bgilb/syncromaticsjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Syncromaticsjs

Node wrapper api for getting data from the syncromatics transit servers.

Hosts

Here is an incomplete list of transit systems hosts using syncromatics:

Why do this?

I do not like the user interface to the transit data from my school transit system which uses syncromatics, so I wanted a convienent way to get the transit data. This node module provides an easy way to get the most important data points like the routes and vehicles in operation.

Install from the npm registry

$ npm install syncromaticsjs

NPM version

Examples

var syncromatics = require('syncromaticsjs');

// set the hostname
var options = {
  host: 'http://www.ladotbus.com',
  id: 'regions'
};

// print out the current available regions for la dept of transportation
syncromatics.get(options, function(error, result) {
  if (!error) {
    console.log(result);
  }
});

options

regions

var options = {
  host: 'http://www.ladotbus.com',
  id: 'regions'
};

region

var options = {
  host: 'http://www.ladotbus.com',
  regionId: 6,
  id: 'region'
};

routes

var options = {
  host: 'http://www.ladotbus.com',
  regionId: 6,
  id: 'routes'
};

route

var options = {
  host: 'http://www.ladotbus.com',
  regionId: 6,
  routeId: 230,
  id: 'route'
};

waypoints

var options = {
  host: 'http://www.ladotbus.com',
  regionId: 6,
  routeId: 230,
  id: 'waypoints'
};

stops

var options = {
  host: 'http://www.ladotbus.com',
  regionId: 6,
  routeId: 230,
  directionId: 0,
  id: 'stops'
};

vehicles

var options = {
  host: 'http://www.ladotbus.com',
  regionId: 6,
  routeId: 230,
  id: 'vehicles'
};

Testing

To install dependencies, npm install then npm test to run the tests

Build Status

License

Copyright (c) 2014, Blaine Gilbreth

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

I have no affiliation with syncromatics.

About

Node API wrapper for syncromatics.com transit data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published