Google+ Search API结果中是否缺少位置字段?

时间:2013-06-28 12:49:13

标签: search location google-plus

我们有一个测试公共帖子,公共位置共享。它在这里:

https://plus.google.com/117438835632597579589/posts/CrqqvQf4kLx

此消息中标记了一个位置,该位置显示在浏览器中。

当我们调用API时,没有显示位置字段,因为文档建议会有(https://developers.google.com/+/api/latest/activities)。这是返回的JSON:

{u'access': {u'kind': u'plus#acl'},
 u'actor': {u'displayName': u'Stuart Battersby',
        u'id': u'117438835632597579589',
        u'image': {u'url': u'https://lh3.googleusercontent.com/-D3bdMxwKXm4/AAAAAAAAAAI/AAAAAAAADn8/_1qBDTPoAcU/photo.jpg?sz=50'},
        u'url': u'https://plus.google.com/117438835632597579589'},
 u'etag': u'"G6azxXlXkwWbV_x-oI3I6szOTWs/ZXO3RDThBxUUobZJEK2PL2qeQBI"',
 u'id': u'z124whmabknyw1wua230stwiyn2wenk2d',
 u'kind': u'plus#activity',
 u'object': {u'content': u'Checking out the Google+ app for android...',
         u'objectType': u'note',
         u'plusoners': {u'selfLink': u'https://www.googleapis.com/plus/v1/activities/z124whmabknyw1wua230stwiyn2wenk2d/people/plusoners',
                        u'totalItems': 1},
         u'replies': {u'selfLink': u'https://www.googleapis.com/plus/v1/activities/z124whmabknyw1wua230stwiyn2wenk2d/comments',
                      u'totalItems': 0},
         u'resharers': {u'selfLink': u'https://www.googleapis.com/plus/v1/activities/z124whmabknyw1wua230stwiyn2wenk2d/people/resharers',
                        u'totalItems': 0},
         u'url': u'https://plus.google.com/117438835632597579589/posts/CrqqvQf4kLx'},
 u'provider': {u'title': u'Mobile'},
 u'published': u'2013-06-28T08:56:53.110Z',
 u'title': u'Checking out the Google+ app for android...',
 u'updated': u'2013-06-28T08:56:53.110Z',
 u'url': u'https://plus.google.com/117438835632597579589/posts/CrqqvQf4kLx',
 u'verb': u'post'}

有人对此有任何建议吗?

由于

1 个答案:

答案 0 :(得分:1)

很遗憾,Google+ API中的位置信息已经破坏了很长一段时间......以下是您可以解决的问题:https://code.google.com/p/google-plus-platform/issues/detail?id=393