2017-06-05 64 views
0

我寫過Swift代碼。我想在使用Google Maps SDK for iOS的註冊中使用durationInTraffic何處將Channel,ClientId放入iOS版Google地圖SDK註冊中?

這裏它說地圖工作客戶應該包括他們的clientId和註冊通道。但我究竟在哪裏把clientId和頻道註冊?下面是我的代碼:

import UIKit 

class AppDelegate: UIResponder, UIApplicationDelegate { 

    var window: UIWindow? 
    let googleMapsApiKey = "MY_GOOGLE_IOS_API_KEY" 

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { 
     // Override point for customization after application launch. 
     GMSServices.provideAPIKey(googleMapsApiKey) 
     return true 
    } 
} 
+0

等效於JavaScript是: Jhonattan

+0

你在哪裏發出請求? –

+0

你在說這個嗎? https://developers.google.com/maps/documentation/distance-matrix/ –

回答

1

後搜索論壇,事實證明,你不能指定頻道註冊谷歌地圖SDK iOS版: developers.google.com/maps/premium/reports/usage-報告