- Note
- This is a pre-release version of the SDK and its quality does not reflect the quality of the final product.
The turn-by-turn navigation SDK is a cross-platform toolkit that allows you to create your own navigation system with a custom set of features, look, and behavior.
This documentation describes the API for the Objective-C language. All SDK functionality is represented with NMMapControl and NMMapSettings classes
ViewController.m
{
}
@end
@implementation ViewController
#pragma mark - UIViewController life cycle
- (void)viewDidLoad {
[super viewDidLoad];
[self addSubview:view];
NSBundle *bundle = [NSBundle mainBundle];
NSString *path = [bundle resourcePath];
[mapView.mapControl setResourcePath:path];
[mapView.mapControl setControlDelegate:self];
[mapView.mapControl setHudDelegate:self];
[mapView.mapControl setMapControlDelegate:self];
[mapView.mapControl setRouteDelegate:self];
[mapView.mapControl setUserItemsOnMapDelegate:self];
[mapView.mapControl start];
}