My [login to view URL] map application has six bus routes, each with an adjacent and opposite journey. When a user clicks on a button it places a route and bus stops on the map, as seen in the picture below. It then connects to an API so that when the user clicks on a stop, it shows them the time that the bus is next due.
I would like for each route to have a moving bus icon to show where the bus is in real time.
The challenge with this project is that the API does not provide the geolocation of the bus. All it gives us is time a bus leaves the stop, and an ATCO code for the bus stop. I have created a php line string (by parsing a csv file) that links the ATCO code to the lat/lang (see images below).
So, an algorithm is required to take this data, calculate the bus location and draw it on the map
Hi, I am an experienced WebGIS developer, and I can complete this task quickly. There are several questions about this project that can be discussed in the chat.