googlemaps / googlemaps/google-maps-services-python
Places API for python, location_restriction
- Linguagem predominante
- Python
- Estrelas
- 5k
- Forks
- 1.4k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
so i'm well aware that a python client exists for Google Maps package. im toying around with find_place() function on python and i noticed that you have one of the parameters "location_bias" existing in two ways in the curl requests but not in python client. specifically, users can specify `locationBias` or `locationRestriction` in their places query - one is more search restricting than the other. i use places API in conjunction with Geocoder API and when dealing with location filters or restrictions, i think it's a waste of tokens to geocode places well-outside the specified area. since i am using python client, `locationBias` is the only parameter available to me (e.g. location_bias=), i wish to use `locationRestriction` instead for a more restricted place search.
so i just wanted to write this suggesting to include `locationRestriction` in the python client if possible.
https://developers.google.com/maps/documentation/places/web-service/text-search#location-bias
Guia de contribuição
Direção de pesquisa
Start with the Python client's find_place() implementation and compare its location_bias handling with the Places API documentation linked in the issue. Trace how request parameters are assembled, then add support for locationRestriction and verify that restricted place searches are represented correctly in the client request.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- python
- Domínio
- api
- Tipo de issue
- Funcionalidade
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100