当我使用这个GET调用从Google Places API和Postman检索JSON代码时:
https://maps.googleapis.com/maps/api/place/nearbysearch/json?types=movie_theater&location=-36.8485,174.763336&radius=10000&key=PutYourAPIKeyHere
我看到那之后
"types"
有
"vicinity"
但是如果我用官方的
Google Maps Python library
为了检索相同的调用:
import googlemaps
gmaps = googlemaps.Client(key='PutYourAPIKeyHere')
search_loction = gmaps.places("nearby",location='-36.8485, 174.763336', type="movie_theater")
print (search_loction)
我看到那之后
“类型”
“附近”
方括号的结尾好像是这项业务的最后一个元素?
在我传递的Postman API调用中
nearbysearch
当我用Python传递
nearby
.
所以
一样
附近的
如果不是,谷歌地图库的nearbysearch是什么?