两种不同的谷歌街景 [英] two different google streetviews

查看:104
本文介绍了两种不同的谷歌街景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我开始在Google地图上放大并放大显示使用以下URL的街景:



https://www.google.com/maps/place/452+42+Ave+SE/@51.0445,-114.059,3a,75y,346.38h,85.83t/data=! 3m4!1e1!3m2!1smwjybt0aGjulRlrUl7QyMg!2e0!4m7!1m4!3m3!1s0x53717001e51c622d:0xe4cc541a8bac14f6!2s219 + 9 + Ave + SE!3b1!3m1!1s0x0:0x22eaf82b58b21f94
$ b $然后,我提取经纬度并生成以下静态街景: https://maps.googleapis.com/maps/a pi / streetview?size = 600x600& location =(51.0445 ,-114.059)& sensor = false

然而,当我比较两个视图时不同。任何想法为什么?

解决方案

我想你不是指大小(当然它会有所不同,因为静态地图有一个大小不限)

静态地图有多个参数(文档):


  1. location
    当我打开第一个链接时,至少对我来说,位置将改为 51.044463,-114.058452

    第一个链接是
  2. 标题 h 346.38


  3. fov
    用于第一个链接,它的参数后跟一个 y 75


  4. pitch strong>
    作为第一个链接,它的参数后跟一个 t 85.83
    从该值减去90: -4.17


结果 https://maps.googleapis.com/maps/api/streetview?size= 600x600& location =%2851.044463,-114.058452%29& heading = 346.38& fov = 75& pitch = -4.17& sensor = false




没有这些参数的结果: ://maps.googleapis.com/maps/api/streetview? size=600x600& location =(51.044463,-114.058452)& sensor = false>

带参数的结果:








第一个链接的屏幕截图(browserwindow调整为600x600的视口)


I am getting two different streetviews, and I'm wondering if anyone can help me understand why the difference occurs.

I start on google maps and zoom into the streetview with the following URL:

https://www.google.com/maps/place/452+42+Ave+SE/@51.0445,-114.059,3a,75y,346.38h,85.83t/data=!3m4!1e1!3m2!1smwjybt0aGjulRlrUl7QyMg!2e0!4m7!1m4!3m3!1s0x53717001e51c622d:0xe4cc541a8bac14f6!2s219+9+Ave+SE!3b1!3m1!1s0x0:0x22eaf82b58b21f94

I then extract the latitude and longitude and generate the following static streetview:

https://maps.googleapis.com/maps/api/streetview?size=600x600&location=(51.0445, -114.059)&sensor=false

However, when I compare the two views they are different. Any ideas why?

解决方案

I guess you don't mean the size(of course it will differ, because static maps have a limited size )

Static maps have multiple parameters(documentation):

  1. location when I open the first link at least for me the location will be changed to 51.044463,-114.058452 .

  2. heading
    for the first link it's the parameter followed by a h : 346.38

  3. fov for the first link it's the parameter followed by a y :75

  4. pitch for the first link it's the parameter followed by a t :85.83 substract 90 from that value: -4.17

Result: https://maps.googleapis.com/maps/api/streetview?size=600x600&location=%2851.044463,-114.058452%29&heading=346.38&fov=75&pitch=-4.17&sensor=false


Result without these parameters:

Result with the parameters:


Screenshot for the first link(browserwindow resized to a viewport of 600x600)

这篇关于两种不同的谷歌街景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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