使用street view publish API上传全景图,连接好像不行
Using street view publish API to upload panoramas, connections doesn't seem to work
我们正在使用 Street View Publish API 在 Street View 上上传全景图,但我们遇到了一些连接问题。上传文档中提到的所有图像后,我们尝试通过批量更新来添加连接。
这是我们发送的批量更新的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"
}
]
}
当我们打开移动街景应用程序时,我们可以观察到全景图已上传,但全景图之间的连接不存在。我们还注意到该应用程序提出了新的连接,我们必须触摸链接才能激活它们
问题:我们如何使用 API 生成连接?我们是否缺少其他参数?
我已经尝试了您的示例代码,但我也无法使用它生成连接。我还阅读了此 documentation that sometimes, there is a delay on making the connections and usually it takes 24 hours to connect. You may also check this 以供参考。
好的,看来我发送批量更新请求的速度太快了。在更新连接之前,我们需要等待所有照片正确上传。
我们正在使用 Street View Publish API 在 Street View 上上传全景图,但我们遇到了一些连接问题。上传文档中提到的所有图像后,我们尝试通过批量更新来添加连接。 这是我们发送的批量更新的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"
}
]
}
当我们打开移动街景应用程序时,我们可以观察到全景图已上传,但全景图之间的连接不存在。我们还注意到该应用程序提出了新的连接,我们必须触摸链接才能激活它们
问题:我们如何使用 API 生成连接?我们是否缺少其他参数?
我已经尝试了您的示例代码,但我也无法使用它生成连接。我还阅读了此 documentation that sometimes, there is a delay on making the connections and usually it takes 24 hours to connect. You may also check this
好的,看来我发送批量更新请求的速度太快了。在更新连接之前,我们需要等待所有照片正确上传。