Added code for getting directions (not working)

the JSON is being returned, but there is an error.  the data looks ok,
so I don't understand the issue.