A small app to track your train

Intro:

Problem:

Solution:
I decided to built an app that allows one to mark the target station and will trigger your phone's alarm when the train crosses that target station. Moreover, this app will use the train's GPS to track the train and not your phone's GPS(No more battery drains suing apps like location based alarms).
Loigc:

  • User enters the train number
  • App shows the list of stations that the train passes by
  • User selects one of the station and exits the app
  • The above request will be pushed to rabbitmq via celery
  • Queue tasks will be processed one by one
  • Each queue item will be checked against the train's current position
  • When the train has not crossed the station, the task his rescheduled and pushed back into the queue
  • When, the train has crossed the station, the device id is identified and a request is pushed to GCM server to send a push notification to that device
  • Now, GCM process the request and sends a notification to user's phone
  • On receiving the event from GCM server, the app wakes up and triggers the phone's alarm for you

Leave a comment