没有回复审核时间

时间:2018-09-02 07:39:06

标签: google-maps google-places-api

我正在使用Google Places API来获取带有评论的地方详细信息。以前,我是在回复中获取每次评论的时间。

例如,

"reviews" : [
         {
            "author_name" : "Robert Ardill",
            "author_url" : "https://www.google.com/maps/contrib/106422854611155436041/reviews",
            "language" : "en",
            "profile_photo_url" : "https://lh3.googleusercontent.com/-T47KxWuAoJU/AAAAAAAAAAI/AAAAAAAAAZo/BDmyI12BZAs/s128-c0x00000000-cc-rp-mo-ba1/photo.jpg",
            "rating" : 5,
            "relative_time_description" : "a month ago",
            "text" : "Awesome offices. Great facilities, location and views. Staff are great hosts",
            "time" : 1491144016
         }
      ]

但是看起来,在Google API中新的新帐单更改之后,响应中未返回时间值。 现在,我得到如下响应

"reviews" : [
         {
            "author_name" : "Robert Ardill",
            "author_url" : "https://www.google.com/maps/contrib/106422854611155436041/reviews",
            "language" : "en",
            "profile_photo_url" : "https://lh3.googleusercontent.com/-T47KxWuAoJU/AAAAAAAAAAI/AAAAAAAAAZo/BDmyI12BZAs/s128-c0x00000000-cc-rp-mo-ba1/photo.jpg",
            "rating" : 5,
            "relative_time_description" : "a month ago",
            "text" : "Awesome offices. Great facilities, location and views. Staff are great hosts"
         }
      ]

这是我用来进行API调用的代码行 https://maps.googleapis.com/maps/api/place/details/json?key=MY_API_KEY&placeid=MY_PLACE_ID&fields=review

如果我在如下所示的Web服务调用中删除了fields参数,则会返回时间值,以正确响应每个检查数据。 https://maps.googleapis.com/maps/api/place/details/json?key=MY_API_KEY&placeid=MY_PLACE_ID

这看起来像是Google API方面的错误。我已经在Google issuetracker中删除了一个错误。 https://issuetracker.google.com/issues/113753944?pli=1

0 个答案:

没有答案