Google 街景 API - 获取全景 JPG

发布于 2025-01-04 15:14:35 字数 239 浏览 3 评论 0原文

有没有办法让我从街景中的某个位置获取完整的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

小巷里的女流氓 2025-01-11 15:14:35

当您使用所需缩放比例的谷歌地图街景时,打开开发者工具(chrome:ctrl + shift + I)。

resources下打开frames -> 数据 -> 图像。向下滚动到cbk

可能会有很多。找到一个属于您当前位置的单个图块。右键单击并在新选项卡中打开。

在地址栏中找到显示 output=tile&x=1&y=2&zoom=4 的部分或任何可能的值。

x=_&y=_ 是图块的名称。要获取所有图块,您需要检查 xy 的每个变体,并每次重新加载页面并保存图像。

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 open frames -> data -> images. Scroll down to cbk.

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 of x and y and reload the page and save the image each time.

At zoom=3, x goes from 0 to 6 and y goes from 0 to 3 for a total of 28 tiles.

At zoom=4, x goes from 0 to 12 and y goes from 0 to 6 for a total of 91 tiles.

明月松间行 2025-01-11 15:14:35

如果您需要静态图像,请检查 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文