Google Local UK Transport & Weather Overlay

NEW: 16 May 2009When mousing over traffic delays if there is more than one point of data available, then the map will zoom in and show you the stretch of road affected (hopefully).

22 January 2007 I've been having loads of problems since my webhost updated from a PHP4 + PHP 5 (which I was using) combo to a single PHP 5 implementation. Sandly this broke my data fetching stuff so lost of the site didn't work. All should be back to normal now!

30 May 2006 The site has had a massive overhaul over the past few days, see the changelog for more details.

29 March 2006 You can now get travel data direct on google maps (in a limted form). See http://bbc.blueghost.co.uk/about_geoRss.html for more details.

23 October:This data may not have been updated for the past few days because some of the BBC data is misssing (certain train company delay files) - this caused the update script to fail. I have since fixed this

NEW: 14 October - You can now get this overlay on Google Earth. Click here for more info.

Any beta version mentioned here can be bookmarked if you wish, but may occasionally fail to work due to testing, or be superceeded.

This site overlays various bits of data onto a Google Map.

Designed for Resoulitons 1024 x 768 or better, but should work on lower resolutions if necessary.

Any Comments then email me @ My Email Address

Go Back


Planned Features


Changelog

Traffic Lines
----------------------------
16 May 2009
-----------------------------
When mousing over traffic alert markers, if there is enough data available the map will try to show the stretch of road affected by the delays
----------------------------


NEW: 14 October - You can now get this overlay on Google Earth. Click here for more info.

Town Locating
----------------------------
09 August 2006
-----------------------------
Thanks to the Google AJAX Search API you can now do UK Geocoding of things like post codes and town/city names.
So I decided to update my site to include a town/post code searcher
Its located on the right hand side menu, enter a town/post code and then press enter, it will return some search results and just click a result to add it to the map
----------------------------

Long Time No See
----------------------------
30 May 2006
-----------------------------
Well its been 7 months! Finally got round to updating to use the newer Goolge Maps API 2, I also took the time to redesign the site.
Its currently in testing, but seems to be mostly working
As usual it works best in Firefox, as this is what I use to test it in. Use any other browser at your own risk!
Both sites (sidebar & non sidebar) are now one.

Software Update
----------------------------
23 October 2005 PM
-----------------------------
Updated to use the GxMarker class when necessary. See this post on Google Groups for more info.

Backend Update
----------------------------
16 October 2005 PM
-----------------------------
Few backend optimisations
Added PTI feed for rail delays, don't know why it wasn't there before
----------------------------

Version 0.3.4 (sidebar)
----------------------------
11 October 2005 PM
-----------------------------
Added Search Box to the top right hand side
Works for Weather Locations and Travel Data (not rail)
It works using AJAX so just type and see the results in the sidebar
The link in the sidebar will take to you to the relevant location - you still have to click the marker yourself at present
----------------------------

Version 0.2.4 (non-sidebar) & Version 0.3.2 (Sidebar)
----------------------------
31st July 2005 PM
-----------------------------
Moved most common javascript to common.js file
Optimised some other (duplicated) code to take up less space
----------------------------

Bug Fix
----------------------------
30th July 2005 PM
-----------------------------
Only a few lines changed to improve some errors with rail data pages
Only moves logo (weather.com/bbc) at end of moving
-----------------------------

Version 0.2.3 (non-sidebar) & Version 0.3.1 (Sidebar)
----------------------------
27th July 2005 PM
-----------------------------
Redesign on the top navigation bar
Can now see live departure boards and motorways in non-sidebar version.
Moved Default Viewpoint up to include more of Scotland
-----------------------------

Version 0.2.2 - legacy site (should still work)
----------------------------
26th July 2005 PM
-----------------------------
Added Permalink feature to non-side bar version - See this page on how to use the permalinks
Few optimisations
-----------------------------

Version 0.2.1- legacy site (should still work)
----------------------------
23rd July 2005 PM
-----------------------------
Updated top-navigation bar to one line as this works better in Internet Explorer
Hybrid Map type (see Top right of map) - added by Google
Few stylesheet/html updates brought in from Beta Version 0.3
Validates to W3C XHTML 1.0 Transitional, for whatever reason adding the DOCTYPE to the html breaks the page, but the following link confirms the validation: http://validator.w3.org/check?uri=http%3A%2F%2Fbbc.blueghost.co.uk%2Fsite21.php&charset=%28detect+automatically%29&doctype=XHTML+1.0+Transitional
-----------------------------

Version 0.3 Beta Released - legacy site (should still work)
----------------------------
17th July 2005 PM
-----------------------------
Only linked from here, not main site yet: http://bbc.blueghost.co.uk/site3.php
Adds Side bar.
Adds Motorways to UK Traffic (option in sidebar).
----------------------------

Backend Changed
----------------------------
17th July 2005 PM
-----------------------------
Data is grabbed using automatic cron jobs.
Weather search data cached.
Hopefully quicker???
----------------------------

Version 0.2 - Greasemonkey Script
----------------------------
16th July 2005 PM
-----------------------------
Added a Traffic Data Overlay to http://maps.google.co.uk using Greasemonkey extenstion for Firefox,
See http://www.blueghost.co.uk/gmaps_uk_traffic.html for more
----------------------------

Version 0.2 - legacy site (should still work)
----------------------------
14th July 2005 PM
-----------------------------
Updated Traffic Data System and added some (Javascript)caching for traffic and rail data
-----------------------------

Version 0.1 - legacy site (should still work)
----------------------------
7th July 2005
-----------------------------
Added BBC Travel Data
-----------------------------

Version 0.01 - no longer available
----------------------------
30th June 2005
-----------------------------
Initial release: Only weather data


About Weather Data


This site gets weather data from weather.com® and displays it on the map.
You can click on the weather icons to show more information.
The links provided here are required to fit in with weather.com® terms and conditions although they are pointless to UK users as they only work for US locations.
You can drag the map by holding the mouse down on it and dragging it around. As you zoom in more weather stations appear.
7 day data is updated every 12 hours, current data is updated every 30 mins.
Links are provided to the BBC Weather site for each location.
The Map is provided by Google Maps and uses their Google Maps API.

The data grabbing has been optimised by using a cron job to get the current data every hour, and 10-day data every 12 hours. It also caches search results for the same period. This should mean the pages load more quickly due to the fact they don't need to check to see if they are getting up-to-date data.

If searching through the 10 day forecast and you stay at the same location the data should load almost instantaneously due to the fact it will cache the xml javascript object without refetching it from the server.

*** The bbc now provide rss feeds for weather, but the data is in such a poor format compared to the weather.com I have decided to keep with the weather.com feeds until the bbc sort out some better format for their feeds ***


About Traffic Data


Work in Progress!
You select the county/area by clicking on the icons on the map, you can then show/hide the delays/roadworks in that area. You can view as many areas as you want, but the more you do the more memory is used.
This Data come from the BBC's TPEG Travel Feeds. They are converted to an easier format via PHP so that they can be easily parsed in Javascript.
I convert them from TPEG files as the RSS feeds don't contain Geographical co-ordinates to position reports on the Google Map.
The Converted files are visible @ http://bbc.blueghost.co.uk/travel_data/

The data is automatically updated every hour 30 minutes, i may cut this to half an hour depending on how much bandwidth it takes up - DONE

Limitations/Bugs

supported by backstage.bbc.co.uk"


About Railway Data


This Data come from the BBC's TPEG Travel Feeds. They are converted to an easier format via PHP so that they can be easily parsed in Javascript.
I convert them from TPEG files as the RSS feeds don't contain Geographical co-ordinates to position reports on the Google Map.
The Converted files are visible @ http://bbc.blueghost.co.uk/travel_data/

The data is automatically updated every hour 30 minutes, i may cut this to half an hour depending on how much bandwidth it takes up - DONE

Live Departure Board Data is taken from the National Rail Website. The relevant Data is extracted (firefox only currently) and displayed in a map pop-up.

supported by backstage.bbc.co.uk


About Live Departure Boards


This is a manual process to add railway stations to my database. See this page on how to add your local station : http://pritch.blueghost.co.uk/wordpress/uk-train-stations-locations/

I use the virgin live departure boards as they still use the old national rail interface (although with Virgin Branding). I prefer the old style as it is easier to understand and contains no adverts. The new national rail website is harder to follow and contains adverts hence I don't link to it.

supported by Virgin Trains Live Departure Boards

*** You can now use the search function to find any UK train station ***


Any Comments then email me @ My Email Address

Go Back