title: Google Direction API Error: "Invalid request. Missing the 'destination' parameter."
body: <p>I am trying to curl the Google Direction API with JSON output by using instructions provided by <a href="https://developers.google.com/maps/documentation/directions/?csw=1#JSON" rel="nofollow">https://developers.google.com/maps/documentation/directions/?csw=1#JSON</a></p>
  
  <p>I have tried specifically (this is what is found on the Google Directions API documentation)</p>
  
  <pre><code>curl https://maps.googleapis.com/maps/api/directions/json?origin=Toledo&amp;destination=Madrid&amp;region=es&amp;key=MY_API_KEY
  </code></pre>
  
  <p>with the following output:</p>
  
  <pre><code>curl https://maps.googleapis.com/maps/api/directions/json?origin=Toledo&amp;destination=Madrid&amp;region=es&amp;key=AIzaSyDSgiKndYh_Kdv17BK2yTeTNhaITShP5Ts
  [1] 4174
  [2] 4175
  [3] 4176
  [2]   Done                    destination=Madrid
  Roberts-Macintosh:~ RobertLoggia$ {
     "error_message" : "Invalid request. Missing the 'destination' parameter.",
     "routes" : [],
     "status" : "REQUEST_DENIED"
  }
  
  [1]-  Done                    curl https://maps.googleapis.com/maps/api/directions/json?origin=Toledo
  [3]+  Done                    region=es
  </code></pre>
  
  <p>I have enabled Google Directions for the project associated with my API key. I was getting an entirely different message completely when it wasn't enabled, and the the server would just reject my hand shake, so I know it's not a matter of my permission to use it, but maybe of the way the http request is structured. </p>