最好的(或任何一种)以编程方式抓屏Google Street View全景图的方式 [英] Best (or any) way to programmatically screen grab a Google Street View panorama

查看:62
本文介绍了最好的(或任何一种)以编程方式抓屏Google Street View全景图的方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

顾名思义,我正在寻找一种编程方式来抓取给定全景图的方法,即设置经度,纬度和POV(俯仰,偏航和缩放)并将抓取保存到服务器.到目前为止,最有希望的是

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

  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.

将街景SWF嵌入另一个SWF中,该SWF打开Web服务器的套接字以侦听请求,并将命令(例如,调整lat/lng和POV)传递给街景SWF,并通过屏幕抓取该视图并将其保存回服务器.SWF可能在Web服务器或其他服务器上运行.

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.

推荐答案

您是否在考虑许可?我怀疑Google限制了您对StreetView数据的处理能力,并且很可能禁止屏幕抓取" ...

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

假设您知道如何避免被google起诉,一种选择可能是跟踪街景SWF生成的HTTP请求,并尝试对API进行反向工程.我会尝试首先使用 http://fiddler2.com (这是基于浏览器的HTTP调试的绝佳工具),如果在Flash Player中无法正常运行,请使用 http://www.wireshark.org (这是一个通用的网络嗅探器,可能需要一些习惯才能使用)

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)

这篇关于最好的(或任何一种)以编程方式抓屏Google Street View全景图的方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆