Google destinations do not return routes when using specific waypoints

I use Google routes to get directions with waypoints. I have a waypoint name from a previous call in Places Api. The problem is that if I make this call:

https://maps.googleapis.com/maps/api/directions/json?origin=46.779704,23.577261&destination=46.564423,23.768673&waypoints=optimize:true|Belvedere,RO|Cheile+Turzii,RO&units=metric&sensor=false

it returns the route. But if the Cluj-Napoca National Theater is added to the Points, and the challenge is as follows:

https://maps.googleapis.com/maps/api/directions/json?origin=46.779704,23.577261&destination=46.564423,23.768673&waypoints=optimize:true|Belvedere,RO|Cheile+Turzii,RO|Cluj-Napoca++ Theater, RO & units = metric & sensor = false

he does not work. The answer has no results.{ "routes" : [], "status" : "ZERO_RESULTS" }

Can anyone help me understand why this is not working? Ps: with Cluj-Napoca + International + Airport added by RO instead of Cluj-Napoca + National + Theater, point RO, it works.

+3
source share
1 answer

You can try adding waypoint coordinates rather than adding their name.

+4
source

All Articles