title: Google Maps directions API waypoints optimize
body: <p>I am having issue with Google Maps API:
  When I am requesting following url it returns results
  <a href="https://maps.googleapis.com/maps/api/directions/json?origin=Brooklyn&amp;destination=Queens" rel="nofollow">https://maps.googleapis.com/maps/api/directions/json?origin=Brooklyn&amp;destination=Queens</a></p>
  
  <p>But using waypoints=optimize:true returns no data
  <a href="https://maps.googleapis.com/maps/api/directions/json?origin=Brooklyn&amp;destination=Queens&amp;waypoints=optimize:true" rel="nofollow">https://maps.googleapis.com/maps/api/directions/json?origin=Brooklyn&amp;destination=Queens&amp;waypoints=optimize:true</a></p>
  
  <p>I can't understand the reason. Please some one help.</p>
  
  <p>I have checked the doc they said to put waypoints between, but what if origin and destination is dynamic and I don't know the waypoints.</p>