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

貢獻指南

開啟貢獻指南

研究方向

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.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
api
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。