I am building an simple website to show the first train arrival and last train departure timing in Singapore. I already wrote a simple code which could be found here. I am placing an circle on top of each station so when hovered it will display the timing for each station.
Thus far I found the location(X and Y Coordinates) of each station manually added it to the code. But then I just realized that the map I am using is not the latest MRT Map. I don't want to go through the process again waste time for the new map. I am looking for a easy way to do this from the code.
There are two techniques I can think of right now:
- Find Equations for each Line assuming circle as points.Then place the circle at the x and y coordinate. I understand that one only Harbourfront to Punngol(Purple) line is the easiest because its a straight line. I am not so sure what is the equations for other lines.
Any other suggestions?