googlemaps / googlemaps/google-maps-services-python

FR: allow lat/lng str instead of float

Abierto
#503 3 comentarios 0 reacciones 0 asignados Ver en GitHub
triage me type: feature request
Lenguaje dominante
Python
Estrellas
5k
Forks
1.4k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.