The second answer on this page gives you a few options:
//Spaces can be changed to "+" or encoded as "%20".
//Linking to a location (No directions)
Is there a way to use maps.google.com's get direction's functionality so that I can pass in the arguments for the directions from the url?
stackoverflow.com