home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 321.lha / RoadRoute / Road_README < prev    next >
Encoding:
Text File  |  1989-12-10  |  4.7 KB  |  102 lines

  1. RoadRoute - A start at a "trip planner"
  2.                 Jim Butterfield .. December 20, 1988
  3.  
  4. Ya got this file of cities (Called "Cities") showing a lot of places in
  5. North America, but not all of 'em.  (Add the ones you want, using your
  6. favorite editor).
  7.  
  8. Ya got this file of road segments (Called "Routes") showing roads
  9. connecting the cities; most of the interstates, and quite a few
  10. others that seem handy.  (Add your own road segments if they are
  11. not already there).  The segments show mileage and driving time,
  12. this last worked out within the conservative 55mph framework.
  13. If you're a speed demon, try not to change the numbers .. just
  14. divide the time by two or whatever your thing is.  And when you
  15. add routes, keep 'em consistent, so that back roads don't start
  16. to look like throughways.
  17.  
  18. And then .. ya got this program (in Basic, at least for the time
  19. being) which tells ya how ya might get from one place to another.
  20. Takes a while to bring in all those cities and routes.
  21.  
  22.  
  23.  
  24. So .. you're interested in places not given in the original files?
  25. Say, you live in Erie, PA, and love to visit your auntie in
  26. Lake Havasu City, Arizona?  So you wanta add these?  No problem.
  27.  
  28. Step 1:  Add the city names to the Cities file using your favorite
  29. editor.  For someplace like Lake Havasu, you might like to slip
  30. in a few nearby cities, such as Needles and Kingman.
  31.  
  32. Step 2:  Start up your editor on the Routes file.  Don't worry
  33. about those numbers ahead of the city names .. the computer will
  34. know what to do if the numbers are not there.  Give road links
  35. hooking up to nearby points in all directions.  For Erie, this
  36. would be:  Buffalo to the east, Cleveland to the West, and
  37. Youngstown to the South (three new lines).
  38.    For Lake Havasu, you'd first want to hook up Kingman to
  39. Flagstaff, Las Vegas, and Needles; then Needles to Barstow.
  40. Finally, you can put in the details for Lake Havasu to Kingman
  41. and Needles; a total of six new lines.
  42.    Be sure to give for each line: two city names, distance,
  43. (sedate) driving time, and highway designation.
  44.  
  45.  
  46.  
  47.    No need to give state designation on the Routes file unless
  48. you have a city name that matches that of a city in another
  49. state.  More on that in a moment.
  50.    When the program runs, it will spot the new items and will
  51. attach prefix numbers to them .. this will save it lookup
  52. time in the future.  You'll see the message "File needs Reforming"
  53.  .. don't panic next time you look and see new stuff there.
  54.  
  55.   If you want to add, say, Jacksonville, North Carolina, you'll
  56. need to think about the name:  there's also a Jacksonville,
  57. Florida, in the system.  No worry:  pop it in the Cities file
  58. anyway, and the computer will know what to do.  You can designate
  59. which Jacksonville you want by using a slash followed by the state
  60. name, e.g., Jacksonville/North Carolina.  If you don't do this,
  61. the computer will ask you which Jacksonville you mean.  Again,
  62. if this is an item in the Routes file, the program will rewrite
  63. ("Reform") the file so that you won't need to answer again.
  64.  
  65.  
  66.  
  67.  
  68.   If programming stuff interests you:  this should be a simple
  69. program.  But "user friendliness", in the form of dialog on
  70. poorly identified places, takes up a little space.  A more
  71. important area is speed:  with hundreds of cities and many
  72. hundreds of routes in the system, linear searches become slow
  73. and painful.
  74.            As a result, you'll find several examples of "linked
  75. lists" here, one of them partly prioritized.  These help find
  76. duplicate city names; greatly speed the search for which routes
  77. apply to a given city; and direct the computer as to which
  78. city point should be searched next.
  79.              The "prefixed numbers" in the routes file are of
  80. course a significant time saver.  Should you remove a city name
  81. from early in the Cities file, together with the appropriate
  82. links in the Routes file, the computer will not get confused
  83.  ... but it WILL need to look up most of the cities named in
  84. the Routes file in order to get their new numbers.  You'll see
  85. the dramatic slowdown this produces .. one time only, since a
  86. "Reformed" file will be written.
  87.  
  88.  
  89.    Feel free to play with this.  If you want to rip out the
  90. existing map, and build a highly detailed map of your area,
  91. be my guest.  (Street maps, I suspect, won't work too well
  92. because one-way streets are not allowed for here).
  93.    Building the files substantially bigger will cost you
  94. run time.  I agonized as to what should be left in and what
  95. taken out (Sorry if your city is not there .. but you can
  96. add it easily enough).
  97.    A map?  It's quite possible, if you add "north/south,
  98. east/west" coordinates to the Cities file.  I did not do it
  99. here because it would be harder for you to add new cities...
  100. you'd have to know (and type in) the coordinates for each.
  101.  
  102.