簡體   English   中英

谷歌地圖距離API與坐標

[英]google maps distance api with coordinates

我已經閱讀了有關Google距離矩陣並輸出到json或xml http://maps.googleapis.com/maps/api/distancematrix/output?parameters的信息
這是來自Google http://maps.googleapis.com/maps/api/distancematrix/xml?origins=Vancouver+BC|Seattle&destinations=San+Francisco|Vancouver+BC&mode=bicycling&language=fr-FR&key=
我的數據庫只有坐標,所以我只用坐標嘗試一下,但是出現錯誤INVALID_REQUEST http://maps.googleapis.com/maps/api/distancematrix/xml?origins=38.078459,23.734718|38.078833,23.736843&mode=bicycling&language= el&key =有人可以幫忙嗎?

“無效請求”中沒有目標參數。 如果添加任意目標坐標,則會得到響應(盡管為ZERO_RESULTS):

http://maps.googleapis.com/maps/api/distancematrix/xml?origins=38.078459,23.734718|38.078833,23.736843&destinations=45,22|44,24&mode=bicycling&language=el&key=

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM