PDA

View Full Version : [Android] onDestinationReached invoked too early.



Kec1z
19.06.2016, 12:10
Hello,

I have problem while using navigation in skobbler Android SDK.

Method onDestinationReached() is invoked a little too early at some particular routing points.

I've read all threads about how to modify this behavior and I stumbled upon a thread which told me to modify advice_places.adv file.

There are two advice_places.adv file in SKMaps.zip. I would like to know what they represent but I cannot find any documentation on them.
a) SKMaps.zip > SKMaps > Advisor > advice_places.adv
b) SKMaps.zip > SKMaps > Advisor > pedestrian > advice_places.adv

I've tried modifying both of them and saving them into SKMaps.zip, importing .zip to application but I see no effect. Behavior remains the same.
I've tried to modify them a little bit excessive just to see whether it works so my file looked like this:



# Description:
# format is: advice_type_street_type = distances_outside_city | distances_in city
#
dest_H = 5 5 5| 5 5 5
dest_M = 5 5 5| 5 5 5
dest_C= 5 5 5| 5 5 5
dest_S= 5 5 5| 5 5 5

dest_str_H = 5 5 5| 5 5 5
dest_str_M = 5 5 5| 5 5 5
dest_str_C= 5 5 5| 5 5 5
dest_str_S= 5 5 5| 5 5 5

dest_rnd_H = 5 5 5| 5 5 5
dest_rnd_M = 5 5 5| 5 5 5
dest_rnd_C= 5 5 5| 5 5 5
dest_rnd_S= 5 5 5| 5 5 5

last_H= 5 5 5| 5 5 5
last_M= 5 5 5| 5 5 5
last_C= 5 5 5| 5 5 5
last_S= 5 5 5| 5 5 5

...

carry_straight_H= 5 5 5| 5 5 5
carry_straight_M= 5 5 5| 5 5 5
carry_straight_C= 5 5 5| 5 5 5
carry_straight_S= 5 5 5| 5 5 5

crossing_H= 5 5 5| 5 5 5
crossing_M= 5 5 5| 5 5 5
crossing_C= 5 5 5| 5 5 5
crossing_S= 5 5 5| 5 5 5


But once again, I see no effect at all.

Can someone direct me into proper direction to solve my problem? Am I doing something wrong here?

Kind regards!

Adela_Silvia
05.08.2016, 16:12
Hello,

When the SDK is "near" the destination the "now" advice will be played (i.e. "now you have reached your destination") - that particular advice has an @ in the end * and @ marks that the navigation should end.
See this <http://sdkblog.skobbler.com/advisor-support-text-to-speech-scout-audio/> article for a more complete description of how the advices are constructed.

How to modify the advice_places.adv file check also this thread: http://forum.skobbler.com/archive/index.php/t-7454.html