Getting Information about Speed Traps and Traffic Jams

by Oct 7, 2011

PowerShell can read RSS feeds in just a couple of lines of code. Many radio broadcasters maintain RSS feeds with information about speed traps and traffic conditions. Here is a (German) sample of how you can access and display such information via PowerShell:

$xml = New-Object xml
$xml.Load("http://www.radio7.de/index.php?id=76&type=100&no_cache=1")
$xml.rss.channel.item | 
  Where-Object {$_.category -eq 'Radar'} | 
  Select-Object -ExpandProperty title

$xml.rss.channel.item | 
  Where-Object {$_.category -eq 'Staus und Behinderungen'} | 
  Select-Object -ExpandProperty title

Twitter This Tip!
ReTweet this Tip!