Get Started
This guide describes the steps required to use the Navigation SDK, providing a high-level overview to help you get started quickly.
Step 1: Get a Key
Refer to Obtaining a Key.
Step 2: Integrate and Deploy
Refer to Automatic Deployment or Manual Deployment.
Step 3: Configure Permissions
Refer to Permission Configuration.
Before using the Navigation SDK, you must import the Foundation SDK. For detailed configuration, see the Foundation SDK Overview.
Step 4: Configure the Key
Configure the AMAP Key obtained in the previous step in your code to ensure the navigation functionality works correctly. Follow these steps:
1. Import the header file.
#import <AMapFoundationKit/AMapFoundationKit.h>2. Configure the AMAP Key.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
……
[AMapServices sharedServices].apiKey = "Your Key";
……
}func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
AMapServices.shared().apiKey = "Your Key"
……
}Step 5: Plan a Route
Refer to Driving Route Planning.