获取室外只有全景的iOS
问题描述:
我使用这个代码来获得全景附近坐标:获取室外只有全景的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。
UPDATE:
作为2018 2月6日的这个功能适用于iOS的。
地图SDK IOS版本2.6.0 - 2018年2月6日
增加了一个来源属性全景搜索允许他们被限制在户外只 结果。请注意,此功能是实验性的,有些搜索可能仍包含室内全景图。
https://developers.google.com/maps/documentation/ios-sdk/releases