[英]how to get nearby places using google places with python and flask
[英]how to search for places nearby google api python
目前,當我在 google api 中搜索某個點附近的企業時,我會根據https://developers.google.com/places/supported_types指定一種企業類型
我用:
gmaps.places_nearby(lat, long, type='specific business type', radius)
如何搜索附近返回所有業務類型的所有地點? 我已經嘗試過Google Places Nearby Search 、 google map api 附近地點搜索和使用 Google Places API 在 Google Maps 中 Find Places Nearby但似乎都沒有幫助。
我試過:
gmaps.nearbySearch(location, radius)
但得到一個錯誤:
'Client' object has no attribute 'nearbySearch'
我發現方法是不指定類型,然后通過生成的json提取類型
gmaps.places_nearby(lat, long, radius)
types = ('|'.join(types))
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.