Git Product home page Git Product logo

jprevost / ctatracker Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 294 KB

This is primarily a demo app that uses the freely available CTA Bustracker API to allow users to see bus arrival predictions for specific routes and stops. It uses data provided by the CTA, and thus is as accurate (or inaccurate) as the provided data.

Home Page: bustimes.herokuapp.com

License: MIT License

Ruby 81.65% JavaScript 1.42% CSS 2.66% HTML 14.28%

ctatracker's People

Contributors

jprevost avatar

Watchers

 avatar  avatar

Forkers

gitter-badger

ctatracker's Issues

Add service bulletins

Base URL: http://www.ctabustracker.com/bustime/api/v1/getservicebulletins

Parameters:

Key
string (required)
25-digit Bus Tracker API access key.

Rt
comma-delimited list of route designators (required if stpid not specified)
Alphanumeric designator of the route(s) (ex. “20” or “X20”) for which a list of service bulletins is to be returned. If combined with rtdir, only one route can be specified.

Rtdir
Single route direction (optional)
Direction of travel of the route specified in the rt parameter. The rt parameter is required when using the rtdir parameter.

Stpid
Comma-delimited list of stop IDs (required if rt not specified)

Set of one or more stop IDs for which service bulletins are to be returned. For example: 5029,1392,2019,4367 will return predictions for the four stops (if available). If combined with rt and rtdir, only one stop can be specified.

Add caching

  • For 10 minutes
    • Cache bus routes
    • Cache bus directions
    • Cache bus stops
  • For 1 minute
    • Cache bus times (for one minute)

HTML5 Geolocation API to find bus stops

  • I want to take bus route x, where is the closest stop (and then give me predictions)
  • Also give me estimated time to walk to that stop (and let me know if I'm likely to make it on time or miss the next bus)
  • I don't know what bus route I want, just show me all routes within half a mile so I can pick a route (and then kick in to show me the closest stop with predictions and estimated walking time)

Remember recently used stops

If I have recently used 147 Northbound from Huron, I'll likely use it again soon.

Use cookies or local storage.

Add filter for index of bus routes

On the main page of the site, there should be a text input that live filters the results on that page.

Ex. entering 147 should filter the list to just display the 147 bus.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.