我正在使用 batchUpdate 方法进行 panos 连接。我有连接问题。导航没有按正确的方向工作。请建议我哪里错了?
我为我的问题附上了一张图片。我想往北走,但在这里,箭头显示在东方向。我没有得到,这个问题与纬度或经度或航向或俯仰有关吗?请帮我。
这是我上传照片元数据的方法:
def upload_image_metadata(upload_link, heading, pitch, latitude, longitude, place_id):
global ACCESS_KEY
ACCESS_KEY = get_access_key()
metadata_upload_url = "https://streetviewpublish.googleapis.com/v1/photo?key={}".format(API_KEY)
headers = {"Authorization": "Bearer {}".format(ACCESS_KEY), "Content-Length": "0",
"Content-Type": "application/json"}
data = {
"uploadReference": {
"uploadUrl": upload_link
},
"pose": {
"latLngPair": {
"latitude": latitude,
"longitude": longitude
},
"heading": heading,
"pitch": pitch,
},
"places": [{
"placeId": place_id,
}],
}
meta_photo_request = requests.post(metadata_upload_url, json=data, headers=headers)
photoid = meta_photo_request.json()['photoId']['id']
return photoid