Results 1 to 2 of 2

Thread: [Android] onDestinationReached invoked too early.

  1. #1
    Neuer skobbler
    Join Date
    19.06.2016
    Posts
    2

    [Android] onDestinationReached invoked too early.

    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:

    HTML Code:
    # 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!

  2. #2
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    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 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •