00001 <? 00002 class Traffic extends Geocode 00003 { 00004 public function __construct($key = null) 00005 { 00006 parent::__construct($key, "http://api.local.yahoo.com/MapsService/V1/trafficData"); 00007 00008 //cache only valid for 5 minutes... traffic 00009 self::$cacheLife = 300; 00010 } 00011 00012 public function parseData($data) 00013 { 00014 return $data["ResultSet"]; 00015 } 00016 } 00017 ?>