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.

gTraffic

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.

Comments

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.

    Thanks
    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).

    http://code.google.com/p/gwtsimiletimeline/source/browse/#svn/trunk/similetimeline/src/com/netthreads/test/simile/timeline/public/site/data

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

    http://www.simile-widgets.org/timeline/

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

    Al.

  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(TimeLineTest.java:32)
    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 com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:369)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:185)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:380)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
    at java.lang.Thread.run(Unknown Source)

    Any suggestions or pointers would be greatly appreciated.

    Thanks,
    Jason

Leave a Reply