【问题标题】:Google StreetView API extracts images froom indoors. How to fix it?Google Street View API 从室内提取图像。如何解决?
【发布时间】:2019-08-06 21:34:18
【问题描述】:

Google StreetView API 返回家庭内部图像。例如:https://maps.googleapis.com/maps/api/streetview?size=480x300&location=49.602363,6.133369&key=YOUR-API-KEY

但我只想要街头照片。我该如何解决这个问题?

【问题讨论】:

  • 阅读documentation怎么样? source 具有 defaultoutdoor 参数。

标签: google-maps google-maps-api-3 google-cloud-platform google-street-view


【解决方案1】:

尝试使用source=outdoor 获取户外图像。例如:

https://maps.googleapis.com/maps/api/streetview?size=480x300&location=49.602363,6.133369&source=outdoor&key=KEY

Google's documentation 状态:

source(默认为默认)将街景搜索限制为选定 来源。有效值为:

  • default 使用街景的默认来源;搜索不限于特定来源。
  • outdoor 将搜索限制为户外收藏。室内馆藏不包括在搜索结果中。请注意,室外全景图可能 指定位置不存在。另请注意,仅搜索 返回全景图,可以确定它们是否是 室内或室外。例如,不返回 PhotoSpheres 因为不知道它们是在室内还是室外。

希望这会有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-24
    • 1970-01-01
    • 2015-11-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多