Google Maps Streetview - How to get Panorama ID

前端 未结 7 1902
轮回少年
轮回少年 2020-12-15 09:49

I want to use custom panorama position, but I need a panorama id for it. Can someone explain me how to get the panorama id from the next link:

https://www.google.nl/

7条回答
  •  孤街浪徒
    2020-12-15 10:23

    In order to get a panorama ID (pano), I have developed a little HTML page whith which you can get some of its parameters (zoom/Pov, pitch and heading) and get the Street View Image request HTTP URL.

    Don't forget to replace the YOUR_API_KEY with your own API key (obvious)

    Have fun with google maps!!

    
    
    
    
    
    
    
    
    
    

    Instructions: create an html file, copy the code , replace API key, open html file in browser, push the "do it" button.

    More references can be found at Google's: https://developers.google.com/maps/documentation/javascript/streetview#StreetViewPanoramas

提交回复
热议问题