Google Places API:无法获得审核摘要

时间:2017-07-25 17:20:03

标签: google-maps google-maps-api-3 google-places-api

我按照说明here,尝试了以下查询:

https://maps.googleapis.com/maps/api/place/details/json?parameters&extensions=review_summary&placeid=ChIJ-UoSVL6-woARN7jRAL3Xigk&key=<MY_OWN_KEY>

,但结果不包含任何评论摘要,如下所示:

{
   "html_attributions" : [],
   "result" : {
      "address_components" : [
         {
            "long_name" : "...",
            "short_name" : "...",
            "types" : [ "street_number" ]
         },
         ...
      ],
      "adr_address" : "...",
      "formatted_address" : "...",
      "formatted_phone_number" : "...",
      "geometry" : {
         "location" : {
            "lat" : ...,
            "lng" : ...
         },
         ...
         }
      },
      "icon" : "...",
      "id" : "...",
      "international_phone_number" : "...",
      "name" : "...",
      "opening_hours" : {...],
         "weekday_text" : [...]
      },
      "photos" : [...],
      "place_id" : "ChIJ-UoSVL6-woARN7jRAL3Xigk",
      "rating" : ...,
      "reference" : "...",
      "reviews" : [
         {
            "author_name" : "...",
            "author_url" : "https://www.google.com/maps/contrib/.../reviews",
            "language" : "en",
            "profile_photo_url" : "https://lh3.googleusercontent.com/.../photo.jpg",
            "rating" : 5,
            "relative_time_description" : "in the last week",
            "text" : "The hotel was clean. The bed was comfortable and the hotel was quiet. The breakfast was hot and good with a variety of choices. The check in was easy and the staff were happy to accommodate us with an early check-in and late checkout.  The pool was clean and beautiful.  Parking was convenient and easy to access.  I felt safe in the hotel and in the parking garage. It was a great stay.",
            "time" : 1500747721
         },
         {...},
         {...},
         {...},
         {...}
      ],
      "scope" : "GOOGLE",
      "types" : [ "lodging", "point_of_interest", "establishment" ],
      "url" : "https://maps.google.com/?cid=...",
      "utc_offset" : ...,
      "vicinity" : "...",
      "website" : "..."
   },
   "status" : "OK"
}

但是,从谷歌地图,这家酒店确实有一个编辑评论摘要:

Rooms · 3.8  
Guests liked the large, clean rooms, though some said they were dated & maintenance could be improved · Guests appreciated the large bathrooms
Location · 4.6  
Easily accessible by car; parking available · Sightseeing, restaurants & bars nearby
Service & facilities · 4.3  
Guests enjoyed the pool · Guests spoke highly of the reception staff

我理解review_summary wronlgy?如果没有,任何人都可以根据要求提供place_id返回评论摘要吗?我喜欢谷歌地图,只是想看到API返回的评论摘要(可能是任何)。

我是否需要升级到高级计划才能查看评论摘要?它说,

Additional fields may include premium data, requiring an additional license, or values that are not commonly requested. Extensions are currently experimental. 

如果是这样,谷歌或使用过高级计划之前的任何人都可以确认吗?

非常感谢!

0 个答案:

没有答案