Python 使用谷歌街景发布API连接多个360图像

Python 使用谷歌街景发布API连接多个360图像,python,json,google-api,google-street-view,google-streetview-publish,Python,Json,Google Api,Google Street View,Google Streetview Publish,使用batchUpadte方法,我尝试从源图像连接多个360图像 e、 g.下面是我对batchUpdate方法的python请求: update_photo_url = 'https://streetviewpublish.googleapis.com/v1/photos:batchUpdate' headers = {"Authorization": "Bearer {}".format("ya29.Glx6BO91jWbj...."), "Content-Length": "0", "C

使用batchUpadte方法,我尝试从源图像连接多个360图像

e、 g.下面是我对batchUpdate方法的python请求:

update_photo_url = 'https://streetviewpublish.googleapis.com/v1/photos:batchUpdate'

headers = {"Authorization": "Bearer {}".format("ya29.Glx6BO91jWbj...."), "Content-Length": "0", "Content-Type": "application/json"}

update_body = {
  "updatePhotoRequests": [
    {
      "updateMask": "connections",
      "photo": {
        "photoId": {
          "id": "image_1"
        },
        "connections": [
          {
            "target": {
              "id": "image_2"
            }
          },
          {
            "target": {
              "id": "image_3"
            }
          }
        ]
      }
    },
    {
      "updateMask": "connections",
      "photo": {
        "photoId": {
          "id": "image_3"
        },
        "connections": [
          {
            "target": {
              "id": "image_4"
            }
          }
        ]
      }
    }
  ]
}
update_response = requests.post(update_photo_url,headers=headers,json=update_body)
update_response.text  
发送此请求后,我的状态为200 OK,但有一个问题,我有四张图像。我在图像之间建立连接,如:

image_1 -> image_2, image_3
image_3 -> image_4
使用上面的代码,我可以从image\u 2->image\u 1,image\u 1->image\u 3,image\u 3->image\u 1,image\u 3->image\u 4和image\u 4->image\u 3进入,但是为什么我不能从image\u 1->image\u 2进入


请帮我解决这个问题。有人能告诉我,我的请求有什么问题吗?

您是否检查了移动街景应用程序或浏览器中的连接?浏览器有时会增加或减少连接,但我发现移动应用程序是查看谷歌服务器上存储的“地面真相”的最佳方式。

我也检查了移动街景应用程序和浏览器中的连接,但连接不可见。是否所有连接都丢失,或者只是将映像_1连接到映像_2?您是否还添加了另一个方向的连接,以便全景可以双向链接?如果您发出batchGet请求,您是否看到连接?如果我在桌面浏览器中打开相同的链接,则连接可见,除了image_1->image_2连接,但是如果我在street view应用程序或移动浏览器中打开相同的链接,则所有连接都将丢失。有时,它需要24小时才能传播,但你应该在街景应用程序的“编辑连接”屏幕上看到它们。顺便说一句:你在应用程序中禁用了“自动连接”吗?你可以检查应用程序中的连接,看看你的应用程序是否正确传输了这些连接。您还可以使用batchGet检查传输是否正确。