I'm using batchUpdate method for panos connection. I have an issue with connections. The navigation is not working in proper direction. Please suggest me where I'm wrong?
I have attached an image for my problem. I want to go north direction but here, arrow is showing in east direction. I'm not getting, Is this problem related to latitude or longitude or heading or pitch? Please help me.
This is my method for Upload the metadata of the photo :
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


As stated in this link, the direction of the arrow can be determined by the lat,lng and heading of each set of 2 panos which are linked.
From this thread,