FR: allow lat/lng str instead of float
還沒有人認領這個 Issue。
評估
研究方向
從 client.elevation 入口開始,使用重現出的 latitude/longitude 字串清單,接著檢查 issue 中提到的 polyline-encoding 路徑。完成的標準是,所示的多位置請求能接受這些字串座標並回傳海拔結果,而不要求手動進行 float 轉換;如果專案有相關的測試位置,請為該範例新增或執行 coverage。
由索引模型根據 Issue 內容生成。
描述
Is your feature request related to a problem? Please describe.
A multi-location elevation() request throws an err when the locs are a list of lat/lng strings.
Describe the solution you'd like
I would have expected this to work.
locations = [('40.714728', '-73.998672'), ('-34.397', '150.644')]
results = client.elevation(locations)
Since I'm retrieving them from json text and googlemaps eventually returns them as json text, why require manual/interim conversion to floats?
Additional context
It appears this might be due to the polyline encoding. But still...why is that mandatory for small lists of coords?
- 主要語言
- Python
- 星號
- 5k
- 分支
- 1.4k
- 平均合併
- 5 小時 9 分鐘
- 30 天內合併 PR
- 1
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
googlemaps/google-maps-services-python 的其他 Issue
-
maps未關閉triage me type: bug
難度 5/5 一週以上 新手友好度 10/100
-
triage me type: feature request
難度 5/5 一週以上 新手友好度 20/100
googlemaps/google-maps-services-python#541 · 3 則留言 · 38 個 reaction ·
-
Release failed - unexpected keyword argument: enable_address_descriptor still not supported可能已有人在做 @Rahulcse79 於 194 天前認領。 未關閉triage me type: bug
難度 3/5 1-2 天 新手友好度 35/100
googlemaps/google-maps-services-python#540 · 1 則留言 ·
-
triage me type: question
難度 1/5 1 小時以內 新手友好度 15/100
googlemaps/google-maps-services-python#539 · 3 則留言 ·
-
triage me type: bug
難度 3/5 1-2 天 新手友好度 30/100
查看 googlemaps/google-maps-services-python 的全部 Issue
相似的 Issue
-
bug drawing-tools
難度 2/5 1-3 小時 新手友好度 76/100
cofade/open-garden-planner#827 ·
維護者通常 1 天內回覆
-
難度 1/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
bug documentation good first issue help wanted testing
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆
-
難度 1/5 1-3 小時 新手友好度 88/100
hololinked-dev/hololinked#213 ·
-
Show evidence time and supersede warnings in the memory inspector可能已有人在做 @Sinchanak-212 今天認領。 未關閉area: ux good first issue priority: medium
難度 2/5 1-3 小時 新手友好度 84/100