.NET Components for Mobility

NavigateToNextStopover

Last post 09-15-2008 2:47 AM by dom406. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 09-09-2008 9:09 AM

    • dom406
    • Top 100 Contributor
    • Joined on 05-07-2008
    • Posts 6

    NavigateToNextStopover

    Hi Peter,

    I've been a few days searching and testing something that I haven't fixed yet. In my app, i create an itinerary file, load it into tomtom through the LoadItinerary method. This loads the itinerary fine, and if i go to the menu (in tomtom navigator) to the itinerary section, I find all the addresses I put in my file. But when I call the NavigateToNextStopover method, it just does nothing. I want to start the navigation to the first stop of the itinerary. What I'm I doing wrong?

    And by the way, if i have for example 5 or 10 adresses in the itinerary, is there a way to have tomtom reorganize them to drive the optimal route?

    Thanks in advance,

    Santi

  • 09-10-2008 3:16 AM In reply to

    Re: NavigateToNextStopover

    How was the itinerary file created? You have read about the different types of point in a waypoint file - the item must have flags = 2 to be marked as a stopover point rather than a pass-through destination.

    Unfortunately it is not possible to programmatically optimise the order of the route.

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 09-10-2008 5:53 AM In reply to

    • dom406
    • Top 100 Contributor
    • Joined on 05-07-2008
    • Posts 6

    Re: NavigateToNextStopover

    The file is created in my app. I didn't find any info on .itn files structure, so i created some of them through tomtom navigator and investigated the structure. The last field of every line is this flag you mention. I saw that the values go like this: 0 = Pass-through Waypoint; 1 = Visited Waypoint; 2 = Destination.

    I've tried with all addresses as waypoints but the last one (Destination) and all of them as desination. The navigatetonextstopover does nothing in both cases.

     This is an example of the last 3 lines of one of my files:

    219362|4138354|menorca 7, BARCELONA|0|
    219292|4141493|huelva 18, BARCELONA|0|
    221019|4140463|fluvia 15, BARCELONA|2|

     Is this all right? For what i've seen in the files generated from navigator i think so.

    And by the way, what's the difference between a pass-through waypoint and a destination address? Navigator will notify "arrived to destination" only if it's marked as Destination or something like that?

    Thanks

    Santi

  • 09-10-2008 9:47 AM In reply to

    Re: NavigateToNextStopover

    Items marked with the stopover flag are points at which the route can be stopped at whereas a regular waypoint (0) will be passed through with continuous navigation to the next point. Therefore if your itinerary contains multiple distinct stopovers you would use:-

    219362|4138354|menorca 7, BARCELONA|2|
    219292|4141493|huelva 18, BARCELONA|2|
    221019|4140463|fluvia 15, BARCELONA|2|

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 09-15-2008 2:47 AM In reply to

    • dom406
    • Top 100 Contributor
    • Joined on 05-07-2008
    • Posts 6

    Re: NavigateToNextStopover

    Ok, that's what I thought. But the NavigateToNextStopover method still does nothing, and i'm not sure if this is the right method to call or it's another one. Thanks for the info.

    Santi

Page 1 of 1 (5 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.