Building real time bus tracking webapp

60 views
Skip to first unread message

Shankara Viknesh

unread,
Apr 22, 2015, 8:02:39 AM4/22/15
to onebusaway...@googlegroups.com
Hi,

I am currently a trying to develop a real time bus tracking system for my University. May I know, whether that the tracking page can be modified? For example, having the google map and bus tracking information only, where it runs on a another page where I develop. Thank you

Sheldon A. Brown

unread,
Apr 22, 2015, 8:21:14 AM4/22/15
to onebusaway...@googlegroups.com
Hi Shankara!

As this project is open source, the answer is always "of course it can
be modified!".

I have to admit to not fully understanding your question however.
Would you like to embedded a google map and realtime info inside
another website? If so, your best bet may be to use the developer
APIs and write some custom javascript code.

Have you seen the NYC version of onebusaway? http://bustime.mta.info/#M60-SBS

You could use that as an example of how to integrate. The code for
the google map portion starts here:

https://github.com/camsys/onebusaway-nyc/blob/master/onebusaway-nyc-webapp/src/main/webapp/js/oba/map/RouteMap.js

Good luck!

Sheldon
> --
> You received this message because you are subscribed to the Google Groups
> "onebusaway-developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to onebusaway-devel...@googlegroups.com.
> To post to this group, send email to onebusaway...@googlegroups.com.
> Visit this group at http://groups.google.com/group/onebusaway-developers.
> For more options, visit https://groups.google.com/d/optout.

Shankara Viknesh

unread,
Apr 22, 2015, 11:11:04 AM4/22/15
to onebusaway...@googlegroups.com
Hi Sheldon,

Thank you for the reply. I was struggling earlier to build my own bus tracking system for my university. Due date would be end of this month, so I m working with strict deadline. Once again Sheldon, thank you for your reply, been a big help for me. :)


On Wednesday, 22 April 2015 20:21:14 UTC+8, Sheldon A. Brown wrote:
Hi Shankara!

As this project is open source, the answer is always "of course it can
be modified!".

I have to admit to not fully understanding your question however.
Would you like to embedded a google map and realtime info inside
another website?  If so, your best bet may be to use the developer
APIs and write some custom javascript code.

Have you seen the NYC version of onebusaway?  http://bustime.mta.info/#M60-SBS

You could use that as an example of how to integrate.  The code for
the google map portion starts here:

https://github.com/camsys/onebusaway-nyc/blob/master/onebusaway-nyc-webapp/src/main/webapp/js/oba/map/RouteMap.js

Good luck!

Sheldon

On Wed, Apr 22, 2015 at 5:01 AM, Shankara Viknesh <shan...@gmail.com> wrote:
> Hi,
>
> I am currently a trying to develop a real time bus tracking system for my
> University. May I know, whether that the tracking page can be modified? For
> example, having the google map and bus tracking information only, where it
> runs on a another page where I develop. Thank you
>
> --
> You received this message because you are subscribed to the Google Groups
> "onebusaway-developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Sheldon A. Brown

unread,
Apr 22, 2015, 11:21:20 AM4/22/15
to onebusaway...@googlegroups.com
Ok! I'm glad I asked, that's completely different then what I asked.

If you have GTFS and a realtime source of data, then following the
quickstart guide should get you up and running pretty quickly.

https://github.com/OneBusAway/onebusaway-application-modules/wiki/OneBusAway-Quickstart-Guide

See how far you can get, and don't forget to search the archives if
you run into any problems.

Good luck!

Sheldon

Shankara Viknesh

unread,
Apr 25, 2015, 12:25:49 PM4/25/15
to onebusaway...@googlegroups.com
Hi Sheldon.

I have just completed all the steps in developers guide. Everything seems to be working fine. 
May I please know, how can I customize the interface of the onebusaway?
As in the layouts of the app.
Thank you. 

Aaron Brethorst

unread,
Apr 25, 2015, 5:11:45 PM4/25/15
to onebusaway...@googlegroups.com
Hi Shankara - which app?

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onebusaway-devel...@googlegroups.com.

Shankara Viknesh

unread,
Apr 25, 2015, 6:36:17 PM4/25/15
to onebusaway...@googlegroups.com
Hi Aaron,

Just completed the developers guide.. But I dont know how to customize webapp interface.
To unsubscribe from this group and stop receiving emails from it, send an email to onebusaway-developers+unsub...@googlegroups.com.

Aaron Brethorst

unread,
Apr 25, 2015, 9:23:08 PM4/25/15
to onebusaway...@googlegroups.com
Can't help with the web app; good luck!

Sent from my iPhone
To unsubscribe from this group and stop receiving emails from it, send an email to onebusaway-devel...@googlegroups.com.

Sheldon A. Brown

unread,
Apr 27, 2015, 8:30:25 AM4/27/15
to onebusaway...@googlegroups.com
Congrats!

If you have OneBusAway running locally, the next step is to start coding.

You mention the developers guide above -- make sure you understand the
pieces that deal with onebusaway-webapp:

https://github.com/OneBusAway/onebusaway-application-modules/wiki/Developer-Guide

The source is located here:
https://github.com/onebusaway/onebusaway-application-modules

Specifically:
https://github.com/OneBusAway/onebusaway-application-modules/tree/master/onebusaway-webapp/src/main/webapp
and
https://github.com/OneBusAway/onebusaway-application-modules/tree/master/onebusaway-webapp/src/main/java/org/onebusaway/webapp/actions

It will help to know a little Spring and Struts. Also, this UI still
uses GWT, which has been deprecated. So any new layouts you create
may want to use another technology (perhaps just JSP + jQuery)

Let me know if that helps,

Sheldon
> --
> You received this message because you are subscribed to the Google Groups
> "onebusaway-developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to onebusaway-devel...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages