我们正在使用 Street View Publish API 在街景上上传全景图,但我们遇到了一些连接问题。上传文档中提到的所有图像后,我们尝试通过批量更新来添加连接。这是我们发送的批量更新的 JSON:
{
"updatePhotoRequests": [
{
"photo": {
"photoId": {
"id": "CAoSLEFGMVFpcE1CSGtCNS1pbUJnQkNFTGt4eVVtZ0NFVUZaVklYTXIzeEhOREhp"
},
"connections": [
{
"target": {
"id": "CAoSLEFGMVFpcFAyel9jZnVldTFSdkFKZzVGWlJOUEdTdnVWaEFaM3ZaN2drbUZI"
}
},
{
"target": {
"id": "CAoSLEFGMVFpcFBCdFZGenBDN21jNExsajV1SjE0UEhQa3lDeTM1MUdRdjJTQTND"
}
}
]
},
"updateMask": "connections"
},
{
"photo": {
"photoId": {
"id": "CAoSLEFGMVFpcFBCdFZGenBDN21jNExsajV1SjE0UEhQa3lDeTM1MUdRdjJTQTND"
},
"connections": [
{
"target": {
"id": "CAoSLEFGMVFpcFAyel9jZnVldTFSdkFKZzVGWlJOUEdTdnVWaEFaM3ZaN2drbUZI"
}
},
{
"target": {
"id": "CAoSLEFGMVFpcE1CSGtCNS1pbUJnQkNFTGt4eVVtZ0NFVUZaVklYTXIzeEhOREhp"
}
}
]
},
"updateMask": "connections"
},
{
"photo": {
"photoId": {
"id": "CAoSLEFGMVFpcFAyel9jZnVldTFSdkFKZzVGWlJOUEdTdnVWaEFaM3ZaN2drbUZI"
},
"connections": [
{
"target": {
"id": "CAoSLEFGMVFpcFBCdFZGenBDN21jNExsajV1SjE0UEhQa3lDeTM1MUdRdjJTQTND"
}
},
{
"target": {
"id": "CAoSLEFGMVFpcE1CSGtCNS1pbUJnQkNFTGt4eVVtZ0NFVUZaVklYTXIzeEhOREhp"
}
}
]
},
"updateMask": "connections"
}
]
}
当我们打开 Mobile Street View 应用程序时,我们可以观察到全景图已上传,但全景图之间的连接不存在。我们还注意到该应用程序提出了新的连接,我们必须触摸链接才能激活它们
问题:我们如何使用 API 生成连接?我们是否缺少其他参数?