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
}
}
等效於JavaScript是: – Jhonattan
你在哪裏發出請求? –
你在說這個嗎? https://developers.google.com/maps/documentation/distance-matrix/ –