我正在使用 Skobbler 地图进行导航,
我将溃败保存到缓存,
[[SKRoutingService sharedInstance]saveRouteToCache:calculatedRouteInfo.routeID];
并从缓存中获得溃败,
[[SKRoutingService sharedInstance]loadRouteFromCache:calculatedRouteInfo.routeID];
计算的RouteInfo.routeID 在哪里SKRouteID
它会自动计算路线,但是,在开始导航后,它总是从第一个开始。我可以保存当前位置并从当前位置开始。我已经给出了导航代码,
SKNavigationSettings *navSettings = [SKNavigationSettings navigationSettings];
navSettings.navigationType=SKNavigationTypeSimulation;
navSettings.distanceFormat=SKDistanceFormatMilesFeet;
self.mapView.settings.displayMode = SKMapDisplayMode3D;
[[SKRoutingService sharedInstance]startNavigationWithSettings:navSettings];