I am having issue with Google Maps API: When I am requesting following url it returns results https://maps.googleapis.com/maps/api/directions/json?origin=Brooklyn&destination=Queens
But using waypoints=optimize:true returns no data https://maps.googleapis.com/maps/api/directions/json?origin=Brooklyn&destination=Queens&waypoints=optimize:true
I can't understand the reason. Please some one help.
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.