适用于iOS入门的HERE API许可证密钥

时间:2019-02-26 20:20:41

标签: here-api

我在HERE注册了一个免费帐户,以试用其iOS入门版。我从https://github.com/heremaps/here-ios-sdk-examples下载了他们的示例,并尝试构建turn-by-turn-navigation-ios-swift。我已经从他们的开发者网站上添加了appid和appcode(下面的截图)

enter image description here

但是,要初始化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
    }
}

有人可以向我指出可以找到许可证密钥的正确方向吗?

谢谢!

1 个答案:

答案 0 :(得分:1)

不要认为入门版SDK支持https://developer.here.com/develop/mobile-sdks

仅高级SDK支持导航用例,并使用许可证密钥来控制功能使用。