1
votes

I am using skobbler in my iOS application to integrate the navigation functionality. Whereas while navigating I see in the demo of the sdk that one gets visual advice images for turns and other information. I want all these possible visual images. I need to know from where are these picked and how are these created? I could not find anything in skobbler how tos about this. Please provide some additional information regarding this.

1

1 Answers

1
votes

After the route is calculated you can ask for all the advices. For each advice you will have a link to the corresponding visual image (with the visualAdviceFile property)

- (void)routingService:(SKRoutingService *)routingService didFinishRouteCalculationWithInfo:(SKRouteInformation*)routeInformation
{
    NSLog(@"Route is calculated.");
    NSArray* advices = [[SKRoutingService sharedInstance] routeAdviceListWithDistanceFormat:SKDistanceFormatMetric];
    for (SKRouteAdvice *advice in advices)
    {
        NSLog(@"%@", advice.visualAdviceFile);
    }
}

From the documentation http://developer.skobbler.com/getting-started/ios#sec15 and http://developer.skobbler.com/docs/ios/2.3.0/Classes/SKRouteAdvice.html#//api/name/visualAdviceFile