Google 街景 API - 获取全景 JPG
有没有办法让我从街景中的某个位置获取完整的 360 度全景图像(例如 jpg)?基本上,我想要对图像进行自定义演示,并希望立即下载整个内容,而不是使用街景窗口及其控件。
Google 文档中有一个关于全景图的部分,但没有解释如何获取街景 360 度图像。相反,他们使用街景窗口,这是我不想做的。
编辑 我应该澄清的是,我并不是想建立自己的街景浏览器。我只想要整个图像,以便我可以将其呈现给用户。
Is there a way for me to get a complete 360 panorama image (such as a jpg) from a location in Streetview? Basically, I want to do custom presentation of the image and want to download the whole thing at once rather than using the Streetview window and it's controls.
There is a section in the Google Documentation for Panoramas but they don't explain how to get a streetview 360 image. Instead, they use the streetview window, which I don't want to do.
EDIT
I should clarify that I'm not trying to build my own streetviewer. I just want the entire image so that I can present it to the user.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当您使用所需缩放比例的谷歌地图街景时,打开开发者工具(chrome:
ctrl
+shift
+I
)。在
resources
下打开frames
->数据
->图像
。向下滚动到cbk
。可能会有很多。找到一个属于您当前位置的单个图块。右键单击并在新选项卡中打开。
在地址栏中找到显示
output=tile&x=1&y=2&zoom=4
的部分或任何可能的值。x=_&y=_
是图块的名称。要获取所有图块,您需要检查x
和y
的每个变体,并每次重新加载页面并保存图像。在
zoom=3
时,x
从 0 变为 6,y
从 0 变为 3,总共 28 个图块。在
zoom=4
时,x
从 0 到 12,y
从 0 到 6,总共 91 个图块。When you're in street-view of google maps with your desired zoom open Developer Tools (chrome:
ctrl
+shift
+I
).Under
resources
openframes
->data
->images
. Scroll down tocbk
.There will probably be a lot of them. Find one that is a single tile of your current location. Right click and open in a new tab.
In the address bar find the part that says
output=tile&x=1&y=2&zoom=4
or whatever values they may be.x=_&y=_
is the name of the tile. To get all the tiles you'll need to go through every variation ofx
andy
and reload the page and save the image each time.At
zoom=3
,x
goes from 0 to 6 andy
goes from 0 to 3 for a total of 28 tiles.At
zoom=4
,x
goes from 0 to 12 andy
goes from 0 to 6 for a total of 91 tiles.如果您需要静态图像,请检查 Google 街景图像 API,您可以可以获得视野 (
fov
) 高达 120 度的全景照片。但是,在我看来,您只是重复使用 Google 的图像来创建自己的街景查看器...这违反了 使用条款。If you need a static image, check the Google Street View Image API, you can get panos with a field of view (
fov
) up to 120 deg. However, it seems to me you jus to create your own Street View viewer re-using Google's images... which is against the Terms of Use.