Results 1 to 20 of 21

Thread: How to calculate a route / find waypoints between start and destination

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #16
    Site Admin VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,496
    Location
    Quote Originally Posted by victorjagu View Post
    Let me show you, perhaps you can suggest me an approach to the final solution.

    However, how would you know the correct waypoints if there were another line involved? For example, something like this:

    A B C D E F G H J Z
    3 3 3
    1 1
    4 4 4
    6 6 6
    2 2 2
    5 5 5

    The correct answer in this case should be: start A in 3 -> then go to 4 in F which turns to 6 and finally J goes to Z in line 5, so waypoints B, F, and J. Waypoint C or A would be mistakes because no further waypoints in 2 reaches destination.
    How could anybody deduce that? A simple matrix has predefined values for both Rows and Columns. You provided Column Values only. Does the cell values represent Train numbers or Line Numbers?
    In the attached workbook there are two examples of a table layouts (Lines/Waypoint, resulting in Train values and Trains/Waypoints resulting in Line values).

    Perhaps looping and taking out those waypoints that don't reach destination (broken route)??
    How about you construct a table layout showing which Waypoints lie in which Lines, and show us that bit before this breaks down completely.
    Attached Files Attached Files
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

Posting Permissions

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