googlemaps / googlemaps/google-maps-services-python

FR: allow lat/lng str instead of float

Đang mở
#503 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
triage me type: feature request
Ngôn ngữ chính
Python
Star
5k
Fork
1.4k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.