UPDATE: I have published an article on codeproject "Exploring Reactive Extensions (Rx) through Twitter and Bing Maps Mashups", which has the full sourcecode for this mashup.
A week ago a colleague of mine posted an interesting article on parallelism in .NET 4.0 which included a few different libraries for asynchronous / parallel processing. Being a bit of a Linq fan, the Reactive Extensions jumped out at me.
With the heavy snow in the UK, I was inspired to have a go at creating a Silverlight version of Ben Marsh's UKSnow twitter / maps mashup.
The application below gives a real-time view of the snow across the UK. To add a snow report to the map, tweet #uksnow with your postcode and the amount of snowfall out of ten (e.g. 7/10).
The application above uses Rx to coordinate requests to the Twitter and Bing maps REST APIs, with the tweets being parsed to extract the postcode, which is then geocoded via bing. Snow is added to the map with an opacity based on the amount (out of ten) in the given tweet.
If it has stopped snowing when you look at the map above, this is what it looked like at around midday today (12:00 GMT, 29th November, 2010):
I plan to write a codeproject article on Rx with a few other examples, however I just couldn't wait to put this online because the example is much more powerful when it is actually snowing!