为什么我对Google Directions API的HTTP请求无效?
下面是我的HTTP请求的URL:
http://maps.googleapis.com/maps/api/directions/json?origin=(50.8441144,-0.1094412)&desination=(50.861796,-0.083256)®ion=uk&sensor=falseJSON响应如下:
{
"routes" : [],
"status" : "INVALID_REQUEST"
}谷歌方向应用编程接口https://developers.google.com/maps/documentation/directions/#DirectionsRequests
发布于 2013-03-15 04:27:48
您的目的地拼写错误,并且您的坐标编码可能不正确。尝试:
http://maps.googleapis.com/maps/api/directions/json?origin=50.8441144,-0.1094412&destination=50.861796,-0.083256®ion=uk&sensor=false
发布于 2013-03-15 04:29:42
您在请求url中输入了一个错误:
http://maps.googleapis.com/maps/api/directions/json?origin=(50.8441144,-0.1094412)&desination=(50.861796,-0.083256)®ion=uk&sensor=false应该是:
http://maps.googleapis.com/maps/api/directions/json?origin=(50.8441144,-0.1094412)&destination=(50.861796,-0.083256)®ion=uk&sensor=false注: des*t*ination。
https://stackoverflow.com/questions/15419412
复制相似问题