以编程方式屏幕抓取 Google 街景全景的最佳(或任何)方法

发布于 2024-07-07 22:36:25 字数 547 浏览 9 评论 0原文

正如问题所暗示的,我正在寻找一种以编程方式屏幕抓取给定全景图的方法,IE 设置经度、纬度和 POV(俯仰、偏航和缩放)并将抓取内容保存到服务器。 到目前为止,

  1. 使用 .net 控制 google Earth com api (http://earth.google.com/comapi/index.html),但是我无法找到关于是否可以通过这种方式访问​​街景图层的明确答案。

  2. 将街景 swf 嵌入到另一个 swf 中,该 swf 打开一个到 Web 服务器的套接字以侦听请求,并将命令(例如调整 lat/lng 和 POV)传递到街景 swf,然后屏幕抓取视图并保存它返回到服务器。 swf 将在网络服务器或其他服务器上运行。

这两种解决方案都存在有关可靠性和可扩展性的问题。 有人有任何进一步的建议或想法吗? 该解决方案不必是实时的,它假设将发生一些异步“幕后”处理。

As the question implies, I'm looking for a way to programmatically screen grab a given panorama, I.E set a longitude and latitude and POV (pitch, yaw and zoom) and save the grab to the server. So far the most promise has been shown by

  1. Using .net to control the google earth com api (http://earth.google.com/comapi/index.html), however I am unable to find a definitive answer on whether on not the street view layer is accessible via this means.

  2. Embed the street view swf inside another swf that opens a socket to the web server to listen for requests, and passing commands (such as adjusting lat/lng and POV) to the street view swf and screen grabbing the view and saving it back to the server. The swf would either be running on the webserver or another server.

Questions about reliability and scalability come into play with both of these solutions. Has anyone got any further suggestions or ideas? The solution doesn't have to be real time, its assumed that some asynchronous "behind the scenes" processing will be happening.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

表情可笑 2024-07-14 22:36:25

您关心许可问题吗? 我怀疑谷歌限制了你对街景数据的处理能力,并且可能禁止“屏幕抓取”……

假设你知道如何不被谷歌起诉,一种选择可能是跟踪街道生成的 HTTP 请求查看 SWF,并尝试对 API 进行逆向工程。 我会首先尝试使用 http://fiddler2.com (它是基于浏览器的 HTTP 调试的绝佳工具) ,如果 Flash 播放器效果不佳,请使用 http://www.wireshark.org(这是一个通用网络嗅探器,可能需要一些时间来适应)

Are you concerned with licensing? I would suspect that google limits what you can do with StreetView data, and likely prohibits "screen scraping"...

Assuming that you figured out how not to get sued by google, one option might be to trace the HTTP requests generated by the street view SWF, and try to reverse engineer the API. I would try to use http://fiddler2.com first (it is a marvellous tool for browser-based HTTP debugging), and if that does not work too well with the flash player, resort to http://www.wireshark.org (this is a general-purpose network sniffer, and might require some getting used to)

太傻旳人生 2024-07-14 22:36:25

如果您有坐标、POV 和其他变量,则可以使用 Google 街景图像 API

https ://developers.google.com/maps/documentation/streetview/

例如 -

http://maps.googleapis.com/maps/api/streetview?size=400x400&location=40.720032,%20-73.988354&fov=90&heading=235&pitch=10&sensor=false

您可以循环并不断更改“标题”变量

If you have the co-ordinates, POV and other variables then you can use Google Street View Image API

https://developers.google.com/maps/documentation/streetview/

For Instance -

http://maps.googleapis.com/maps/api/streetview?size=400x400&location=40.720032,%20-73.988354&fov=90&heading=235&pitch=10&sensor=false

You can loop through and keep changing the "heading" variable

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