The requirements are as follows:
Input to the system:
1. the starting station
2. the attraction to visit
Output from the system:
1. the start line to use
2. interchange stations
3. the nearest end station on a particular line
4. the time taken to walk from the tube station to the attraction
5. the total time taken to travel to the attraction
I am asked to design the data model to support this system. It is actually a travel planning system for the tourists. I am provided with a tube map (the map for all the station lines), and also a map with the distance of all the attractions to the nearest station.
Also, there are two assumptions:
1. It takes on average 2 minutes to travel between adjacent stations
2. 10 minutes to change lines at an interchange station
From the information above, we can easily calculate the output 4 and 5. But I am not sure how to improve the quality of my data model. Especially how to add the direction attribute of each line, since a line has two directions, pointing to either terminal station. My roughly sketched data model is in my previous message. Please help. Thanks.