此处 API iOS 初学者的许可证密钥
HERE API license key for iOS starter
我在 HERE to try out their iOS starter. I downloaded their sample from https://github.com/heremaps/here-ios-sdk-examples 注册了一个免费帐户并尝试构建转弯导航-ios-swift。我已经从他们的开发者网站添加了 appid 和 appcode(下面的屏幕截图)
但是,要初始化 HERE 服务,您还需要提供许可证密钥。
import UIKit
import NMAKit
let credentials = (
appId: "I have this",
appCode: "I have this",
licenseKey: "Can't find this"
)
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
NMAApplicationContext.setAppId(credentials.appId, appCode: credentials.appCode, licenseKey: credentials.licenseKey)
return true
}
}
有人可以指出我可以找到许可证密钥的正确方向吗?
谢谢!
不认为 starter SDK 支持 Navigation as per: https://developer.here.com/develop/mobile-sdks
只有高级 SDK 支持导航用例并使用许可证密钥来控制功能使用。
我在 HERE to try out their iOS starter. I downloaded their sample from https://github.com/heremaps/here-ios-sdk-examples 注册了一个免费帐户并尝试构建转弯导航-ios-swift。我已经从他们的开发者网站添加了 appid 和 appcode(下面的屏幕截图)
但是,要初始化 HERE 服务,您还需要提供许可证密钥。
import UIKit
import NMAKit
let credentials = (
appId: "I have this",
appCode: "I have this",
licenseKey: "Can't find this"
)
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
NMAApplicationContext.setAppId(credentials.appId, appCode: credentials.appCode, licenseKey: credentials.licenseKey)
return true
}
}
有人可以指出我可以找到许可证密钥的正确方向吗?
谢谢!
不认为 starter SDK 支持 Navigation as per: https://developer.here.com/develop/mobile-sdks
只有高级 SDK 支持导航用例并使用许可证密钥来控制功能使用。