googlemaps / googlemaps/google-maps-services-python

FR: allow lat/lng str instead of float

未关闭
#503 3 条评论 0 个 reaction 已指派 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 摘要。