Man.. If I knew how easy this was I'd have done it a lot longer.. Here's the script, documentation is included inside.
Let me know if you run accross any routes that it can't handle. As I live in the US, I just tossed a couple cities I know of in the UK at it and used that as my benchmark.