// TomTom HD Traffic access library, $Revision: 297 $

/// Following the Java conventions, the namespace for the tomtom HD Traffic service is com.tomtom.
var com;
if (!com) com = {};
else if (typeof com != 'object') throw new Error("com already exists and is not an object");

if (!com.tomtom) com.tomtom = {}
else if (typeof com.tomtom != 'object') throw new Error("com.tomtom already exists and is not an object");

/// Main access object is com.tomtom.Hdt
if (!com.tomtom.Hdt) com.tomtom.Hdt = {};

(function() {
    if (!com.tomtom.Hdt.gb) com.tomtom.Hdt.gb = {}

    com.tomtom.Hdt.gb.units = {length: 'm', time: 'min'}
    com.tomtom.Hdt.gb.rate = {length: 1609.344, time: 60}

    com.tomtom.Hdt.gb.defaultRegion = 'Greater_London';

})();
