googlemaps / googlemaps/google-maps-services-python

Places API for python, location_restriction

未关闭
#518 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
triage me type: feature request
主要语言
Python
星标
5k
派生
1.4k
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。