[英]Google Distance Api returns Zero with specific Latitude Longitude
I am providing Origin Latitude/Longitude and Destination Latitude/Longitude to Google API. 我向Google API提供了原始纬度/经度和目标纬度/经度。
But in response it returns Zero. 但作为回应,它返回零。
Provided Coordinates: 提供坐标:
Origin = 70.7417,-22.6583
Destination = 48.8602,2.34107
Output Result: 输出结果:
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>
Source Link: 来源链接:
https://maps.google.com/maps/api/directions/xml?language=fr&origin=70.7417,-22.6583&destination=48.8602,2.34107&sensor=false https://maps.google.com/maps/api/directions/xml?language=fr&origin=70.7417,-22.6583&destination=48.8602,2.34107&sensor=false
Can anyone tell me where I am making a mistake? 谁能告诉我我在哪里犯了错误?
Originally the points are form Danemark | 最初的积分是Danemark | Constable Pynt |
Constable Pynt | 3985 |
3985 | Gronland TO France Paris 75001 Ile-de-France
Gronland TO France Paris 75001 Ile-de-France
"ZERO_RESULTS" indicates that the geocode was successful but returned no results. “ZERO_RESULTS”表示地理编码成功但未返回任何结果。 This may occur if the geocode was passed a non-existent address or a latlng in a remote location.
如果地理编码在远程位置传递了不存在的地址或latlng,则可能会发生这种情况。
please try to check if you coordinates are valid. 请尝试检查您的坐标是否有效。
My guess would be that Google Maps tries to find a driving route between the two points. 我的猜测是谷歌地图试图找到两点之间的驾驶路线。 Since the locations you provided are in Greenland and France, with no direct connection, Google can't find directions, hence the response
ZERO_RESULTS
. 由于您提供的地点位于格陵兰和法国,没有直接连接,Google无法找到路线,因此响应为
ZERO_RESULTS
。
Quote from the documentation : 从文档中引用:
ZERO_RESULTS indicates no route could be found between the origin and destination.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.