Location:
Overview
NavInfo Map iOS Service SDK is a mobile product development kit based on iOS 8.0 and above. Developers can call this SDK interface to easily access NavInfo map services and data, and quickly build rich and interactive functions. Strong map class application. The SDK provides basic functions such as tram travel, path planning, batch calculation, and road events to meet the needs of different users.
Feature introduction and experience
-
Suggest
- (void)searchwithType:(NavinfoSearchCategory)type{ Self.query = [[NavinfoPOIQuery alloc] initWithKeyword:@"Home Inn" city:@"BEIJING" lonlats:nil category:SERVICE_API_SEARCH_TEXT];]; self.query.exinfo = 2; self.search = [[NavinfoPOISearch alloc] init]; self.search.delegate = self; [self.search search:self.query]; } - (void)POISearch:(NavinfoPOISearch *)poiSearch result:(NavinfoPOISearchResult *)result error:(NSError *)error{ }
-
Charging Station Search
- (void)searchwithType:(NavinfoSearchCategory)type{ Self.query = [[NavinfoPOIQuery alloc] initWithKeyword:@"petrol station" city:@"BEIJING" lonlats:nil category:SERVICE_API_EV_TEXT];]; self.query.exinfo = 2; self.search = [[NavinfoPOISearch alloc] init]; self.search.delegate = self; [self.search search:self.query]; } - (void)POISearch:(NavinfoPOISearch *)poiSearch result:(NavinfoPOISearchResult *)result error:(NSError *)error{ }
-
Vehicle Range
- (void)reachAreaTest{ NavinfoLonlat * centerLonlat = [[NavinfoLonlat alloc]initWith:11637830 latitude:3989856 gbType:NavinfoGbTypeG02]; NavinfoEleCarAreaQuery * areaQuery = [[NavinfoEleCarAreaQuery alloc]initWithAreaCenter:centerLonlat soc:30]; NavinfoEleCarReachAreaSearch * areaSearch = [[NavinfoEleCarReachAreaSearch alloc]init]; [areaSearch startSearchWith:areaQuery]; } - (void)onEleCarReachAreaSearch:(NavinfoEleCarReachAreaSearch * _Nonnull)routeSearch response:(NavinfoEleCarReachAreaResult * _Nullable)response error:(NSError * _Nullable)error{ NSLog(@"Error: %@", error); }
-
RTIC Kanban
- (void)trafficCityGraphic { self.tgSearch = [[NavinfoTrafficGraphicSearch alloc] init]; self.tgSearch.delegate = self; NavinfoTrafficCityGraphicQuery *query = [NavinfoTrafficCityGraphicQuery new]; query.cityName = @"Dalian"; [self.tgSearch cityGraphicSearch:query]; } - (void)onTrafficCityGraphicSearch:(NavinfoTrafficGraphicSearch *)graphicSearch result:(NavinfoTrafficCityGraphicResult *)result error:(NSError *)error { if (error) { NSLog(@"----> error"); } }