Google Maps Directions via KML Google Earth
Some google mappers have noticed that you can create kml files from google maps
Example directions from SW1 to SW2 in London
to create the kml simply add '&output=kml' to the end of the url in google maps
This will create a kml file for you to either save or open in Google Earth.
Now for the clever bit, as google maps api does not support directions.
copy the file and rename it .xml and not .kml
if you have a webserver you can upload, like here
then create a page with your route like this
KML (keyhole markup language) a google earth format (which is xml) which allows users to create directions from google maps (not the api).
110mb.com is a free hosting service that supports mysql and php.
Thanks to Mike Williams web page.