python中place_如何从google places api for python中的place id获取place细节

我正在使用Google Places API和Python构建一个针对食物的集体智能应用程序。e、 g.周围有哪些餐厅,他们有哪些收视率,他们的时间安排等

我在Python中执行以下操作:from googleplaces import GooglePlaces, types, lang

API_KEY = ''

google_places = GooglePlaces(API_KEY)

query_result = google_places.nearby_search(

location='Mumbai', keyword='Restaurants',

radius=1000, types=[types.TYPE_RESTAURANT])

if query_result.has_attributions:

print query_result.html_attributions

for place in query_result.places:

print place.name

print place.geo_location

print place.place_id

它给我的回报是这样的:Subway

{u'lat': Decimal('19.1156005'), u'lng': Decimal('72.9090715')}

ChIJV2JWaObH5zsRt-FrEb8lrtM

Aroma's Cafe

{u'lat': Decimal('19.116867'), u'lng': Decimal('72.90982199999999')}

ChIJSWijB-bH5zsRVLE5ipsxvHU

Chili's

{u'lat': Decimal('19.1161942'), u'lng': Decimal('72.90909789999999')}

ChIJ4_2UcubH5zsRWMemt2WTsLc

Mainland China

{u'lat': Decimal('19.1154358'), u'lng': Decimal('72.90858159999999')}

ChIJ88dcaObH5zsRWLT4KyCLkI8

The Yellow Chilli

现在我想知道每家餐厅的详细情况(比如他们的收视率、评论、时间安排)。如何使用place_id检索信息?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值