[英]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>
來源鏈接:
誰能告訴我我在哪里犯了錯誤?
最初的積分是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.