googlemaps / googlemaps/google-maps-services-python

FR: allow lat/lng str instead of float

オープン
#503 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
triage me type: feature request
主要言語
Python
スター
5k
フォーク
1.4k
PR マージ指標
30日以内にマージされた PR はありません

説明

**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?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。