TMS-Pathfinding
Find the shortest path between any two rooms in Thornton Middle School (Fremont, CA, USA). The school map was created by using Google Earth, and the path is found using the A* Pathfinding Algorithm.
Dependencies
Instructions
Downloading the app
- Go to the releases page on the right
- Scroll down to the bottom
- Download the corresponding file for your OS (the .exe is for Windows, the Linux.tar.gz is for Linux)
Using the app
-
Using the map shown, enter in your starting and ending room
- The inputs must be the exact same as the name on the map. For example, if you start in room 1, you can not input "One" or "Room 1" (you have to type "1").
- You must select each box, or click away.
- Only an arbitrary number of characters will be output. If when you type a letter it will go outside the box, it will not be stored/output. You have to either proceed to step 2, click a different text box, or press backspace.
-
Click the Submit button or press "Enter"/"Return" on your keyboard.
- Invalid Input will be displayed if the input criteria aren't met (the corresponding text boxes will be in red). If this is the case, go back to step 1.
-
After at most a couple seconds, the shortest path will be shown in orange and a green and red dot for the starting and ending positions respectively. The distance and predicted walking time (assumes you walk at 4 ft/second) are displayed on the right. Otheriwse, "Invalid Input" is displayed on the right in red, and so are the invalid inputs.
- If you type "BB" or "GB" (boys'/girls' bathroom) and then a number from 2-3 (or nothing to represent 1; there are three bathrooms for each gender) as the ending position, then the shortest path among that of all three bathrooms will be displayed.
-
If you want to enter in more rooms, press "Reset".
Example Input & Path
- Rooms SG (small gym) & E205 do exist
- The green dot is the starting position (SG)
- The red dot is the ending position (E205)
- The path between the points is in orange
- The distance is shown in feet on the right (427 feet)
- The estimated time to walk that path is also on the right (1 minute and 46 seconds)
- The part of the path that is upstairs may not seem optimal. However, there is a railing around the classrooms.
Credits
- The Thornton STEM Elective Teacher - Mr. Register, for help throughout the beginning development process, as this was the final project in Programming & App Creators Semester 2 2023-24
- The creators & contributors to Google Earth - without them, the map would have been very inaccurate