Traffic map prototype
Primary tabs
Submitted by elksie on Fri, 24/07/2009 - 10:27pm
It looks like I've finally sussed this Regex function in Yahoo Pipes in order to extract the geo coding in a URL to plot accident information from the Highways Agency.
I was basically playing around looking for a feed to process and realised that the info provided by the Highways Agency is coded in a format thus:
http://www.trafficengland.co.uk/map.aspx?isTrafficAlert=true&lat=53.0195...
The challenge was to extract the bits for longitude and latitude.
Now I've tried before and got nowhere. This time I managed it.
The code to do it for latitude is: .+lat=(.+)&.+ And the code for longitude is: .+lon=(.+) Simple!
(He says, waiting to be stumped by the next bit of code)
Here's my eventual map:
View Traffic map in a larger map
Menu taxonomy:
User login
Powered by Drupal