Google街景视图网址 [英] Google street view URL

查看:209
本文介绍了Google街景视图网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好我有一个属性的地址,我的应用程序可以启动浏览器去 http:// maps.google.com?q=searchStringHere 的。如果找到一个好的匹配,它会直接在那里。有什么我可以附加到该网址,使其切换到街景而不具有确切的坐标?我不想编写任何JavaScript或Flash。

解决方案

不幸的是,没有简单的答案,根据地址。

首先, Google地图网站的参数列表在此处有记录,因此您可以使用它作为您的出发点。



简单部分是你需要选择streetview层& layer = c。然而,在该层中显示任何内容之前,您需要指定视图的位置。 您可以通过cbll中的经纬度设置位置,以及cbp中某些选项的相机角度。



要获取地址的经纬度,您需要要使用地理编码服务,例如 google maps api



然而,这只会让你看到靠近地址的街景。除了知道街道视图的来源,您还需要知道摄像机指向哪个角度 - 每个地址都不相同,具体取决于StreetView摄像头拍摄照片的最近点位置,因此自动执行并不容易(我知道的任何信息都可以使用......)

Hi I have the address of a property and my application can launch a browser to go to http://maps.google.com?q=searchStringHere. If a good match is found it will take it directly there. Is there any thing I can append to the url to make it switch to streetview without having the exact coordinates? I dont't want to code any javascript or flash.

解决方案

Unfortunately not - there's no simple answer, based on the address.

Firstly, the list of parameters for the Google Maps site is documented here, so you can use that as your starting point.

The easy part is that you need to select the streetview layer "&layer=c".

However, before anything will display in that layer, you need to specify where your view is. You set the position by the latitude and longitude in cbll and the angle of the camera with some options in cbp.

To get the latitude and longitude from the address, you need to use a geocoding service, like the google maps api.

However, this will only get you a street view close to the address. In addition to knowing where the street view needs to be from, you also need to know which angle to point the camera at - this will be different for every address, depending on where the nearest point the StreetView camera took a photo from was, so it's not easy to do automatically (with any information that I know is available...)

这篇关于Google街景视图网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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