Location:

Overview

NavInfo Map Navigation Client Application Development SDK [Navinfo Navigation SDK for iOS] is a map navigation client application development kit based on iOS 8.0 and above. Users can easily construct a variety of interactive applications based on map navigation. The four-dimensional map navigation client application product development SDK provides basic functions such as 3D map display and operation, location information search, navigation calculation, navigation process management, etc., to meet the various application needs of different users.

Feature introduction and experience

  • Simulation Navigation

    1. (For complete code, see MBNaviController.m in the SDKDemo project)
    2. // real-time navigation
    3. If (naviMapView == nil) { // Map does not exist
    4. naviMapView=[[MBMapView alloc]initWithFrame:(0,120.0,kMainScreenSizeWidth, kMainScreenSizeHeight - 120.0 - 55.0)];
    5. [self.view addSubview:naviMapView];
    6. // Create a car logo layer
    7. MBModelOverlay *car = [[MBModelOverlay alloc] initWithFilePath:@"res/red_car.obj"];
    8. carHead = MBNaviHeadNorthUp;
    9. }
    10. // Initialize the navigation module
    11. MBNaviSession *naviSession = [MBNaviSession sharedInstance];
    12. naviSession.enableSound = YES;
    13. naviSession.delegate = self;
    14. // Callback function completed by route calculation
    15. - (void)naviSessionResult:(MBRouteCollection *)routes {
    16. // Calculate the road to complete
    17. // Get the routes collection, the routeBases in this collection, need to use when initiating navigation to obtain data
    18. for (MBOverlay *overlay in naviMapView.overlays) {
    19. [naviMapView removeOverlay:overlay];
    20. }
    21. if (routes.routeBases.count > 0) {
    22. MBRouteOverlay *routeOverlay = nil;
    23. for (MBRouteBase *base in routes.routeBases) {
    24. routeOverlay = [[MBRouteOverlay alloc] initWithRoute:base.getRouteBase];
    25. routeOverlay.clickEnable = YES;
    26. [naviMapView addOverlay:routeOverlay];
    27. }
    28. }
    29. [naviSession startSimulation];
    30. }
    31. - (void)naviSessionTracking:(MBNaviSessionData *)sData {
    32. NSLog (@"current car location: %d, %d", sData.carPos.x, sData.carPos.y);
    33. NSLog (@"current head orientation: %ld", (long) sData.carOri);
    34. NSLog (@"current recommended scale: %ld", (long) sData.suggestedMapScale);
    35. NSLog (@" Is there a next turn: %@, and %ld meters turn", sData.hasTurn?@"Yes": @"No", (long)sData.turnIconDistance);
    36. NSLog(@"current steering ID: %ld", (long)sData.turnIcon);
    37. NSLog (@"Road name after turn: %@", sData.nextRoadName);
    38. NSLog (@"current road name: %@", sData.roadName);
    39. NSLog(@"\n");
    40. }
  • HUD Navigation Mode

  • Multiple Routing

TOP