Ios Google Maps CoCoPapod中缺少GMSPlace视口成员

Ios Google Maps CoCoPapod中缺少GMSPlace视口成员,ios,swift,maps,Ios,Swift,Maps,我正在实现一个iOS地图视图。我设置了谷歌搜索Api来实现地点搜索 我用过像这样的椰子荚 pod 'Google' , '~> 1.2.1' pod 'GoogleMaps', '~> 1.11.0' 当用户搜索一些关键字时,我得到一个GMSPlace列表。当用户选择GMSPlace对象的on时,我运行此代码以获取坐标 placesClient?.lookUpPlaceID(placeID, callback: { (place: GMSPlace?, error: NSError

我正在实现一个iOS地图视图。我设置了谷歌搜索Api来实现地点搜索

我用过像这样的椰子荚

pod 'Google' , '~> 1.2.1'
pod 'GoogleMaps', '~> 1.11.0'
当用户搜索一些关键字时,我得到一个
GMSPlace
列表。当用户选择
GMSPlace
对象的on时,我运行此代码以获取坐标

placesClient?.lookUpPlaceID(placeID, callback: { (place: GMSPlace?, error: NSError?) -> Void in                       
                    if let place = place {
                        print("Place name \(place.name)")
                        print("Place coordinate \(place.coordinate)")
                        // how to find the viewport?
                    } else {
                        print("No place details for \(placeID)")
                    }
                })
如果您在此处查看
GMSPlace
中有成员
视口
——建议在此位置使用的视口

但是如果我点击Xcode中的GMSPlace,我就会进入这个类。它没有视口成员

    /**
 * Represents a particular physical place. A GMSPlace encapsulates information about a physical
 * location, including its name, location, and any other information we might have about it. This
 * class is immutable.
 */
public class GMSPlace : NSObject {

    /** Name of the place. */
    public var name: String! { get }

    /** Place ID of this place. */
    public var placeID: String! { get }

    /**
     * Location of the place. The location is not necessarily the center of the Place, or any
     * particular entry or exit point, but some arbitrarily chosen point within the geographic extent of
     * the Place.
     */
    public var coordinate: CLLocationCoordinate2D { get }

    /**
     * Represents the open now status of the place at the time that the place was created.
     */
    public var openNowStatus: GMSPlacesOpenNowStatus { get }

    /**
     * Phone number of this place, in international format, i.e. including the country code prefixed
     * with "+".  For example, Google Sydney's phone number is "+61 2 9374 4000".
     */
    public var phoneNumber: String! { get }

    /**
     * Address of the place as a simple string.
     */
    public var formattedAddress: String! { get }

    /**
     * Five-star rating for this place based on user reviews.
     *
     * Ratings range from 1.0 to 5.0.  0.0 means we have no rating for this place (e.g. because not
     * enough users have reviewed this place).
     */
    public var rating: Float { get }

    /**
     * Price level for this place, as integers from 0 to 4.
     *
     * e.g. A value of 4 means this place is "$$$$" (expensive).  A value of 0 means free (such as a
     * museum with free admission).
     */
    public var priceLevel: GMSPlacesPriceLevel { get }

    /**
     * The types of this place.  Types are NSStrings, valid values are any types documented at
     * <https://developers.google.com/places/supported_types>.
     */
    public var types: [AnyObject]! { get }

    /** Website for this place. */
    @NSCopying public var website: NSURL! { get }

    /**
     * The data provider attribution string for this place.
     *
     * These are provided as a NSAttributedString, which may contain hyperlinks to the website of each
     * provider.
     *
     * In general, these must be shown to the user if data from this GMSPlace is shown, as described in
     * the Places API Terms of Service.
     */
    @NSCopying public var attributions: NSAttributedString! { get }
}
/**
*表示一个特定的物理位置。GMSPlace封装了有关物理层的信息
*位置,包括它的名称、位置以及我们可能知道的任何其他信息。这
*类是不可变的。
*/
公共类GMSPlace:NSObject{
/**地点的名称*/
公共变量名称:String!{get}
/**这个地方的地方ID*/
公共变量placeID:String!{get}
/**
*地点的位置。地点不一定是地点的中心或任何
*特定的入口或出口点,但在地理范围内的一些任意选择的点
*这个地方。
*/
公共变量坐标:CLLocationCoordinate2D{get}
/**
*表示创建地点时该地点的“立即打开”状态。
*/
public var openNowStatus:GMSPlacesOpenNowStatus{get}
/**
*此位置的国际格式电话号码,即包括前缀为国家代码的电话号码
*加上“+”。例如,谷歌悉尼的电话号码是“+61 2 9374 4000”。
*/
public-var-phoneNumber:String!{get}
/**
*以简单字符串形式显示的地址。
*/
public var formattedAddress:String!{get}
/**
*根据用户评论,这个地方被评为五星级。
*
*评级范围从1.0到5.0。0.0意味着我们对这个地方没有评级(例如,因为没有
*已经有足够多的用户查看了此位置)。
*/
公共var评级:Float{get}
/**
*此位置的价格级别,以0到4之间的整数表示。
*
*例如,值为4表示此位置为“$$$”(昂贵)。值为0表示免费(例如
*博物馆(免费入场)。
*/
公共var priceLevel:GMSPlacesPriceLevel{get}
/**
*此位置的类型。类型是NSStrings,有效值是在中记录的任何类型
* .
*/
公共变量类型:[AnyObject]!{get}
/**这个地方的网站*/
@正在复制公共var网站:NSURL!{get}
/**
*此位置的数据提供程序属性字符串。
*
*这些是作为NSAttributedString提供的,其中可能包含指向每个网站的超链接
*提供者。
*
*通常,如果显示来自此GMSPlace的数据,则必须向用户显示这些数据,如中所述
*API的服务条款。
*/
@NSCopying公共变量属性:NSAttributedString!{get}
}
我需要做什么才能得到想要的课程


最美好的祝愿。

最新的cocoapod有它!我只是需要更新一下