如果街景视图发布API判断一个全景图上设置了多个目标,那么它应该链接哪个方向的全景图连接? [英] How does street view publish API judge the panorama connection that which direction should it linked to if multiple target set on one panorama?

查看:249
本文介绍了如果街景视图发布API判断一个全景图上设置了多个目标,那么它应该链接哪个方向的全景图连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google街景发布API中遇到了连接请求问题。无论是单一目标还是多个目标。如果我从来源照片创建单个目标

  {
updatePhotoRequests:[
{
updateMask:connections,
photo:{
photoId:{
id:pano_3
},
连接:[
{
target:{
id:pano_4
}
},
]
}







上面的JSON请求如何设置Panorama连接到目标全景的特定方向。
例如,如果我设置从pano_1北部位置到pano_2南部位置的连接,则其设置不正确。链接箭头显示为正确的方向而不是向前或向后的方向。以下图片有助于理解问题



在上图中,我打算创建连接以进一步但它显示的是右箭头按钮,而不是前进按钮。



同样的问题与多张照片

  {
updatePhotoRequests:[
{
updateMask:connections,
photo:{
photoId :{
id:pano_1
},
connections:[
{
target:{
id: pano_2
}
},
{
target:{
id:pano_3
}
}
]
}
}
]
}


@HarishKumar,箭头的方向取决于链接的每组2个panos的lat,lng和标题。您可以查看此链接以供参考。把它想象成飞机上的2个顶点,你可以将它们移动到飞机上的任何地方,或者将它们围绕自己的中心旋转,但总是只有一条直线连接它们。



您需要编辑您要连接的每张照片的标题。例如,对于箭头指向右侧并带有标题:90 的pano_1,您的pano_2应该有一个标题:270 。请注意,您需要编辑两张图片。 (我已经通过试验和错误完成了这项工作。)


I have an issue with the connection request in google street view publish API. Both with single and multiple target. If i create single target from source photo

{
 "updatePhotoRequests": [
 {
    "updateMask": "connections",
  "  photo": {
     "photoId": {
       "id": "pano_3"
     },
     "connections": [
      {
        "target": {
          "id": "pano_4"
         }
       },
     ]
   }
 }
 ]
}

How the above JSON request set Panorama connection to specific direction of the target panorama. For e.g if i set a connection from pano_1 north position to pano_2 south position its not set properly. the link arrow show to right direction rather than forward or backward direction. The following image help to understand the problem

In the above image i intended to create connection to go further but its showing the right arrow button rather than forward button.

Also same issue with multiple photos

{
          "updatePhotoRequests": [
        {
        "updateMask": "connections",
           "photo": {
            "photoId": {
               "id": "pano_1"
            },
            "connections": [
               {
                   "target": {
                    "id": "pano_2"
                     }
                       },
                       {
                   "target": {
                    "id": "pano_3"
                         }
                       }
                    ]
                    }
               }
            ]
          }

解决方案

@HarishKumar, the direction of the arrow is determined by the lat,lng and heading of each set of 2 panos which are linked. You may check this link for reference. Think of it as 2 vertices on a plane, you can move them anywhere on the plane or rotate them around their own center, but there's always only one straight line that connects them.

You need to edit the heading of each photo that you want to connect. Example, for pano_1 with arrow pointing to right with heading:90, your pano_2 should have a heading:270. Be noted that you need to edit both pictures. (I've done this by trial and error.)

这篇关于如果街景视图发布API判断一个全景图上设置了多个目标,那么它应该链接哪个方向的全景图连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆