Using batchUpadte method, I'm trying to connect multiple 360 images from the source image.
e.g. Below is my python request for batchUpdate method:
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
After sending this request, I'm getting status 200 OK but there is one problem, I have four images. I'm making connection between images as in:
image_1 -> image_2, image_3
image_3 -> image_4
Using above code, I'm able to go from image_2 -> image_1, image_1 -> image_3, image_3 -> image_1, image_3 -> image_4 and image_4 -> image_3 but why I'm unable to go from image_1 -> image_2?
Please help me to resolve this issue. Can anybody tell, what is wrong in my request?