have a look at the examples. You will have to hardcode the "to", change the "from" to an input box and fire the function from a button, but that's relatively minor stuff.
yah that example is good... I already checked it before
please help me
i want to know how to get this on a local machine with mysql to store the locations????
which locations? the destinations (in which case you are downloading data from your database) or the starting points (in which case you are saving data to your database?
either way, if you want to run it locally (ie, not as a publicly accessible web page), I would check google's TOS (particularly section 9.1)
yah that example is good... I already checked it before
please help me
i want to know how to get this on a local machine with mysql to store the locations????
You can easily do that after reading this documentation.