blueintegral / WaitOrWalk

The information you really want when waiting at the bus stop: is it quicker to wait or to walk? Only works for Georgia Tech right now.
9 stars 3 forks source link

Major changes to server.py details. #9

Closed darkzeroman closed 11 years ago

darkzeroman commented 11 years ago

I've been working on a GT Nextbus app, so I have a some experience in dealing with Nextbus' weird API. I would recommend glancing the README to understand the _title vs _tag variable names.

So first thing I've introduced is this route config file that I had constructed while making the app. It has information about all routes/directions/stops. This was made from different sources and I had to manually edit this a few times.

So this should be used instead of all those conditionals, using this file makes life a lot easier and helps a great deal for expanding this to other routes. I have taken out the route information all other routes beside red/blue because there isn't the walking data for the many of the new stops from other routes (Tech Trolley, Green, etc)

There are some issues in the API that need to be known.

I've aded another file "v2methods" which includes my current work to integrate the changes into server.py. My changes can be seen here.

Seems like there are some indentation/space/tab issues, I'll get those fixed soon.

blueintegral commented 11 years ago

Looks great. It looks like in v2methods.py, you're GETing NextBus data from a Heroku app of some kind. Is that something you wrote for interfacing with the NextBus API?

darkzeroman commented 11 years ago

At first I used my own API, but now I'm using the method from your original code.

Tanner commented 11 years ago

Awesome. The route config file seems like an awesome asset.

darkzeroman commented 11 years ago

So we need to figure out what's the future with this project.

I'm able to work on the "backend" of the app, but would need someone else to work on the front end.

The next few things that need to be done are:

Tanner commented 11 years ago

I would separate those into different issues so they don't clutter this one and can be discussed independently.

Tanner commented 11 years ago

@darkzeroman's second point is covered in #11.