[jQuery] JMaps directions search error

[jQuery] JMaps directions search error


I've been trying the directions search of Jmaps for my app. But keep
getting errors. I tried printing the error message (valid.message),
But just says 'unknown error occurred' Not sure what is wrong & how to
fix it. Has anybody experienced this before. If so could you please
share your solution to it?
I followed this example as it is..
http://map.ifies.org/examples/google/Google.Address.SearchDirections.html
Sample 'Query' that i tried: "From: Oceanside, CA to: san marcos, CA".
I hope its not a formatting error with the query.