Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chicago's joining the elevator party #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

kratsg
Copy link

@kratsg kratsg commented Jan 24, 2017

I didn't test it. Sorry. Returns:

2.1.4 :001 > ChicagoApi.get_data
 => ["Chicago Red: Roosevelt", "Chicago Brown: Western Kimball-bound Platform", "Chicago Pink: 18th"] 

The cta line chosen comes from the long description, while the elevator/stop comes from the message (short description) which is parsed heavily. Below is the raw data example from 23/01/2017 @ 7:40PM CST.

[1] pry(ChicagoApi)> messages
=> ["Roosevelt Street-to-Mezzanine Elevator Out of Service", "Western Kimball-bound Platform Elevator Out of Service", "Elevator at 18th Temporarily Out-of-Service"]

[2] pry(ChicagoApi)> long_desc
=> ["Red Line - The street-to-mezzanine elevator at the Roosevelt subway station will be temporarily out of service.",
 "Brown Line - The Kimball-bound platform elevator at the Western station will be temporarily out of service.",
 "The elevator to the 54th/Cermak-bound platform at 18th (Pink Line) is temporarily out-of-service."]

@ismith
Copy link
Owner

ismith commented Jan 27, 2017

Whoooooooo! Some cleanup and integration to do (I'll handle that), and then I'll get this running in invisible mode so we can collect some data.

This is exciting ^_^

@kratsg
Copy link
Author

kratsg commented Feb 6, 2017

yay! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants