从 Google Maps SDK for iOS 获取仅限室外的全景图

Getting outdoor only panoramas from Google Maps SDK for iOS

我正在使用此代码获取坐标附近的全景图:

self.panoramaView = [[GMSPanoramaView alloc] initWithFrame:CGRectZero];
self.view = self.panoramaView;

[self.panoramaView moveNearCoordinate:self.coordinate];

GMSMarker *marker = [GMSMarker markerWithPosition:self.coordinate];
marker.icon = [UIImage imageNamed:@"PlacePin"];
marker.panoramaView = self.panoramaView;

我发现在 Google API documentation 中有 source 参数,其可能的 Outdoor 值仅用于获取室外全景图。 iOS SDK 可以吗?我在文档中找不到任何这样的参数,但我不确定。谢谢

此选项仅在 JavaScript API 中可用。没有 IOS 或 Android.

更新:

自 2018 年 2 月 6 日起,此功能在 iOS 上可用。

Maps SDK for iOS Version 2.6.0 - February 6, 2018

Added a Source attribute to Panorama searches allowing them to be restricted to outdoor-only results. Note that this feature is experimental and some searches may still include indoor panoramas.

https://developers.google.com/maps/documentation/ios-sdk/releases