我正在向Google API提供原点纬度/经度和目的地纬度/经度。
但作为响应,它返回零。
提供的坐标:
Origin = 70.7417,-22.6583
Destination = 48.8602,2.34107
输出结果:
This XML file does not appear to have any style information associated with it.
The document tree is shown below.
<DirectionsResponse>
<status>ZERO_RESULTS</status>
</DirectionsResponse>
源链接:
https://maps.google.com/maps/api/directions/xml?language=fr
有人能告诉我我哪里出错了吗?
最初,积分是从丹麦|康斯特布尔·派特| 3985 |格兰到法国巴黎75001法兰西岛
“ZERO_RESULTS”表示地理编码成功,但未返回任何结果。如果向地理代码传递了不存在的地址或远程位置的锁定,则可能会发生这种情况。
请尝试检查您的坐标是否有效。
我的猜测是,谷歌地图试图找到两点之间的行驶路线。由于您提供的位置在格陵兰和法国,没有直接连接,谷歌无法找到方向,因此响应< code>ZERO_RESULTS。
引用文档:
ZERO_RESULTS indicates no route could be found between the origin and destination.