GWT: gTraffic Timeline

I occasionally have a look at my GWT traffic mashup to make sure it’s still working. I was looking at it again tonight and was struck by how many good ideas it seems to have. Good ideas that no one else seems to have bothered to pick up on. As an example take a look at the view (as of tonight) for the Berkshire area.


I was clicking around to make sure that the data seemed up to date and kept clicking on long running Roadworks. If you only had that view then it would be a chore to determine what was new and what was long running except that you have the ability to flick over to the time-line. Looking at that I could see right away what the latest events were. The time-line view is not perfect but I am still amazed no one else has copied this idea cos I think this is genuinely useful.

gTraffic timeline

Another one is the zoom-in/zoom-out buttons on the infowindow. My implementation jumps down to the street view and then back up to the last selected zoom level. I know this has been used elsewhere in sites connected to me but I would have thought this would be more widespread as, again, it’s a useful functionality.

gTraffic zoom

Maybe it’s just me but I think there are some good ideas here which are not represented in current traffic web sites.


3 Responses to “GWT: gTraffic Timeline”

  1. Shamaila on October 7th, 2009 10:50 am

    I am trying to use gwt timeline in a project where I have to show the events on the timeline. I am using gwt-ext 1.7, I had many issues but most of them are now solved. One thing is that can you provide any help about the datastores. Like if I use xml then how should I write it. For start attribute do I need to write the full date in some specific format or what? Is there any documentation about xml or json datastores?

    In most of the google API I have used I felt that they should have provided better documentation. I am thinking that instead of blaming them I will volunteer to write documentation for every API I will use in future. I am willing to write documentation for timeline too. Please note that I have read getting started guide and that is not sufficient.

    Umme Essa

  2. Administrator on October 7th, 2009 4:20 pm

    Shamaila, The Stonehenge GWT demo sample xml file has examples of most advanced features you might want to use. This is in the source tree under tests (and not in the download JAR file).

    This was created using the instruction on the original simile time-line website (around which the GWT timeline is a wrapper).

    I would be interested in what problems you came across with GWT 1.7.1. We endeavour to keep the code up to date.


  3. Jason on September 27th, 2010 9:38 pm

    Hey I am new to gwt and am a fairly new java programmer as well, I was trying to implement the GWT simile timeline into my first web application. I can’t get the stonehedge example to run. I am running GWT 2.0.X and smartGWT here is my error:

    java.lang.NullPointerException: null
    at com.netthreads.test.simile.timeline.client.TimeLineTest.onModuleLoad(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at Source)

    Any suggestions or pointers would be greatly appreciated.