Skobbler: set the language of the board instructions and the distance between the instructions

I am doing a step-by-step navigation application, I have two questions:

1- How can I change the language of recommendations? I liked it:

SKAdvisorSettings *adviceSettings = [[SKAdvisorSettings alloc]init]; adviceSettings.advisorType = SKAdvisorTypeTextToSpeech; adviceSettings.language = SKAdvisorLanguageFR; 

But I always get instructions in English.

2- How can I change the distance between tips, for example, I want to write a voice instruction every 500/200/10.

Thank you for your help.

+1
source share
1 answer

1. When calculating the route, you need to make the following settings:

 SKAdvisorSettings *settings = [SKAdvisorSettings advisorSettings]; settings.advisorVoice = @"fr"; settings.language = SKAdvisorLanguageFR; [SKRoutingService sharedInstance].advisorConfigurationSettings = settings; 
  1. To set the distance to the audio consultation, you will have to change the advice_places.adv file On iOS: inside SKAdvisorResources.bundle / Configs / folder

There, for each type of instruction (intersection = turn left or right, exit on the highway, roundabout, etc.) there are 3 tips created at three different distances (we actually have 2 sets of distances, one of which is for outside the cities and one when inside the city). Change these distances to achieve the requirement "only 10-200 + - meters to."

+1
source

Source: https://habr.com/ru/post/1241178/


All Articles