繁体   English   中英

Google Distance Api以特定的纬度经度返回零

[英]Google Distance Api returns Zero with specific Latitude Longitude

我向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&origin=70.7417,-22.6583&destination=48.8602,2.34107&sensor=false

谁能告诉我我在哪里犯了错误?

最初的积分是Danemark | Constable Pynt | 3985 | Gronland TO France Paris 75001 Ile-de-France

“ZERO_RESULTS”表示地理编码成功但未返回任何结果。 如果地理编码在远程位置传递了不存在的地址或latlng,则可能会发生这种情况。

请尝试检查您的坐标是否有效。

我的猜测是谷歌地图试图找到两点之间的驾驶路线。 由于您提供的地点位于格陵兰和法国,没有直接连接,Google无法找到路线,因此响应为ZERO_RESULTS

文档中引用:

ZERO_RESULTS indicates no route could be found between the origin and destination.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM