有没有办法仅通过地址即可获得谷歌街景全景图的正确相机方向?
你知道,如果你向谷歌地理定位服务提供地址,它会返回纬度和经度,这样你就可以在地图上标记该地点或在街景视图中前往那里。
无论如何,即使街景中显示的位置有点精确,它也不能正确显示方向。我的意思是,这并不是“看着”与地址相匹配的房子,而是……站在房子前面,看着街道,或者天空,或者任何你想要的东西,但不是房子。
You know, if you give the address to the Google geolocation service it returns the latitude and longitud, so you can mark the place in the map or go there in the street view thing.
Anyway, even when the place showed in street view is kinda precise, it doesn't show the orientation properly. I mean, it's not "looking at" the house what matches the address, it's just... standing in front of the house and watching the street, or the sky, or whatever you want, but not the house.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我解决了这个问题,计算了我想要显示的房子的位置,然后计算了下一个和上一个的位置,所以我得到了 3 个点,我可以计算垂直方向。
I solved this calculating the position of the house I wanted to show, then the position of the next and the previous, so I got 3 points and I can calculate the perpendicular direction.
使用正确的参数可以调整方向:这应该直视芬兰赫尔辛基的一辆汽车。
但是,我认为不可能在街景视图中获得任意地址的正确“查看”视角 - 我认为信息太难收集,并且需要数年的手动校正。
我认为除了手动更正您想要显示的地址之外,没有任何方法。
Adjusting orientation is possible using the right parameters: This should be looking straight into a car in Helsinki, Finland.
However, I don't think it is possible to get the correct "looking at" perspective for arbitrary addresses in street view - I assume that information is simply too difficult to collect and would require man-years of manual correction.
I don't think there is any way except to manually correct the addresses you want to show.